Robbie Geoghegan
1 min readMar 14, 2020

Hi Amir, thanks so much for leaving a note.

My first thought is that the search you’re conducting may be too narrow. I’d suggest first trying a more common keyword and location (e.g. #pets, New York) and see if this returns more tweets as a test of the code itself.

If the code runs with more common terms, it may be a matter of using multiple, separate search terms (e.g. #pets, #cats, #cats). You can also remove the location filter so the code returns any tweet having the search term you’re using.

However, one problem with this package is that it is far from a comprehensive source for Twitter data and I tend to treat is a a sample of Twitter data. It may simply be an issue that the package hasn’t collected the data you’re fetching — especially the case if its recent tweets. For anything very recent, using Tweepy and the Twitter API is the best bet.

Let me know how you go and, if you’d like to share your search terms, I can try on my end to see if I get better results.

Happy coding,

Robbie

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Robbie Geoghegan
Robbie Geoghegan

Written by Robbie Geoghegan

Data Scientist and Author of “ABCs of Artificial Intelligence” and “A to Z of Web3” available: https://mybook.to/abcsofai & mybook.to/atozofweb3

Responses (1)

Write a response