Skip to content

Commit

Permalink
reducing more
Browse files Browse the repository at this point in the history
  • Loading branch information
AliAbdelaal committed Sep 21, 2019
1 parent 23cf7ba commit e52c72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitterdash/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

def get_last_month_tweets(query, limit=1000, lang="en"):
start_date = date.today() - timedelta(30)
tweets = query_tweets(query, limit,poolsize=5, lang=lang, begindate=start_date)
tweets = query_tweets(query, limit,poolsize=3, lang=lang, begindate=start_date)
print(f"got {len(tweets)} tweet.")
return tweets

def get_last_half_year_tweets(query, limit=1000, lang="en"):
start_date = date.today() - timedelta(30*6)
tweets = query_tweets(query, limit,poolsize=5, lang=lang, begindate=start_date)
tweets = query_tweets(query, limit,poolsize=3, lang=lang, begindate=start_date)
print(f"got {len(tweets)} tweet.")
return tweets

0 comments on commit e52c72b

Please sign in to comment.