-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snscrape multiple iterative search not working #770
Comments
What concrete query are you running, which doesn't return results? And does the same query give results on Twitter's web interface? |
sntwitter.TwitterSearchScraper(f'{account_name[n]} + near:"United States" + since:{datestamp_start} until:{datestamp_end}').get_items() It works when i am not using iterative search for account_name and give combination of keywords directly. But when i put it under the loop for iterative search with -----for n, k in enumerate(account_name): it is neither producing any result nor giving any error. |
My only guess would be that |
Yes, I saw that, and those queries return results for me just fine:
If you don't get results in your loop, you're probably passing a different string into the scraper than you think you are. |
Can I send you my code? |
I'm sorry, but I don't have time to debug your code. |
sure. Thanks, Ill try that |
It's a warning that snscrape couldn't extract the card on that tweet. I have never seen |
I assume this means you got your code working? |
Yes thank you, there was issue with my query as is it was not able to pass value of account_name[n] |
Describe the bug
I am trying to fetch data from the config file and then trying to scrape data with the iterative search for those keywords.
The code has been into the processing for a while and doesn't show any error or result.
Initially I tried to search for a week data, now just to confirm i tried to scrape for a day, still the code is not retrieving anything.
How to reproduce
Expected behaviour
Screenshots and recordings
Operating system
Windows 10
Python version: output of
python3 --version
3.8.8
snscrape version: output of
snscrape --version
Version 0.6.1
Scraper
TwitterSearchScraper
How are you using snscrape?
Module (
import snscrape.modules.something
in Python code)Backtrace
No response
Log output
No response
Dump of locals
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: