Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created September 6, 2022 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/89e5ec97867daf13f512811e74f5b104 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/89e5ec97867daf13f512811e74f5b104 to your computer and use it in GitHub Desktop.
# Search for queries in English language with 'elon musk' that are not retweets
query = 'elon musk lang:en -is:retweet'
# Granularity can be minute, hour, day
counts = client.get_recent_tweets_count(query=query, granularity='day')
for count in counts.data:
print(count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment