jalahax.blogg.se

Download sketchpad
Download sketchpad




append( f"u/ &before="ĭownload_from_url( "posts.txt", url_template. write( " \n- \n")ĭef write_csv_line( writer, obj, is_submission): encode( encoding = 'ascii', errors = 'ignore'). utcnow() #datetime.strptime("", "%m/%d/%Y")Įnd_time = None #datetime.strptime("", "%m/%d/%Y")Ĭonvert_to_ascii = False # don't touch this unless you know what you're doingĬonvert_thread_id_to_base_ten = True # don't touch this unless you know what you're doingĭef write_human_line( handle, obj, is_submission, convert_to_ascii): The script works backwards, so the end date has to be before the start date # you can change out the below lines to set a custom start and end date. # default start time is the current time and default end time is all history # - csv: a comma seperated value file with the fields score, date, title, author, link and then body or url # - human: the score, creation date, author, link and then the comment/submission body on a second line. # change this to one of "human", "csv" or "json" # or fill in both to download a specific users history from a specific subreddit # leave either one blank to download an entire user's or subreddit's history Thread_id = "" # put the id of the thread you want to download in the quotes, it's the first 5 to 7 character string of letters and numbers from the url, like 107xayi Subreddit = "" # put the subreddit you want to download in the quotes Username = "" # put the username you want to download in the quotes






Download sketchpad