twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.74k stars 2.72k forks source link

Since parameter not changeable after start #1402

Closed ChristophHandschuh closed 2 years ago

ChristophHandschuh commented 2 years ago

now= dt.now() config = twint.Config() config.Limit = 2 config.Since = open("date.txt", "r").read() config.Hide_output = True config.Store_object = True config.Username = "USERNAME" twint.run.Search(config) tweets_as_objects = twint.output.tweets_list for i in range(len(tweets_as_objects)): print(i) open("date.txt", "w").write(now.strftime("%Y-%m-%d %H:%M:%S"))

By running this code every hour I get the same results as it started. Could you please help me? I think the Since Parameter form the config file is set once at start.

ChristophHandschuh commented 2 years ago

twint.output.clean_lists() is the Thing