vladkens / twscrape

2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
1.13k stars 132 forks source link

Question: No search results with since / until filters #188

Closed ratobiajin closed 5 months ago

ratobiajin commented 6 months ago

Hello! Thank you for your work! Now, login is successful to two accounts, but as there is no error, nor any tweets scraped either (it worked until today for more recent period, but now does not work to any period and any search keywords), i don't know what to do. This is the code on windows 11 cmd: twscrape add_accounts "params.txt" "username:password:email:email_password" twscrape login_accounts twscrape search "ラトビア OR ラトヴィア OR ラトヴィヤ since:2023-01-01 until:2023-06-14" > 2023data4.json nor it works in python idle. The uninstall and reinstall did not work. Please let me know.

finiteautomata commented 5 months ago

Same here. It seems that the issue is the query with since or until. For some reason, it is not returning anything

vladkens commented 5 months ago

Hi, @ratobiajin & @finiteautomata.

This is something with X.

This query still not working: https://x.com/search?q=%E3%83%A9%E3%83%88%E3%83%93%E3%82%A2%20OR%20%E3%83%A9%E3%83%88%E3%83%B4%E3%82%A3%E3%82%A2%20OR%20%E3%83%A9%E3%83%88%E3%83%B4%E3%82%A3%E3%83%A4%20since%3A2023-01-01%20until%3A2023-06-14&src=typed_query&f=live

But if I change date it working: https://x.com/search?q=%E3%83%A9%E3%83%88%E3%83%93%E3%82%A2%20OR%20%E3%83%A9%E3%83%88%E3%83%B4%E3%82%A3%E3%82%A2%20OR%20%E3%83%A9%E3%83%88%E3%83%B4%E3%82%A3%E3%83%A4%20since%3A2023-01-01%20until%3A2023-06-15&src=typed_query&f=live

So play with date range or use different date format