shaikhsajid1111 / twitter-scraper-selenium

Python's package to scrap Twitter's front-end easily
https://pypi.org/project/twitter-scraper-selenium
MIT License
305 stars 47 forks source link

Tweets did not appear! #15

Closed edward-lzy closed 2 years ago

edward-lzy commented 2 years ago

I can't get any tweets T T I don't know why

shaikhsajid1111 commented 2 years ago

Okay, can you please share more details about it. Like what code did you tried?, What environment you're using , what's the version of Python you're on?

edward-lzy commented 2 years ago

Okay, can you please share more details about it. Like what code did you tried?, What environment you're using , what's the version of Python you're on?

Thank you for your reply!

The code I used was

from twitter_scraper_selenium import scrap_keyword scrap_keyword(keyword="#Pronouns", browser="chrome", tweets_count=10, until="2022-05-01", since="2022-05-10", output_format="csv", filename="#Pronouns_May") It was working well when I first installed this module, but when I tried it few days later, I just couldn't get any tweets and "Tweets does not appear" just kept poping up"

My python version is Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32

This was the record C:\Users\Edward\AppData\Local\Programs\Python\Python39\python.exe C:/Users/Edward/PycharmProjects/Twitter/Twitter.py [WDM] - Current google-chrome version is 101.0.4951 [WDM] - Get LATEST driver version for 101.0.4951

[WDM] - Get LATEST driver version for 101.0.4951 [WDM] - Trying to download new driver from http://chromedriver.storage.googleapis.com/101.0.4951.41/chromedriver_win32.zip [WDM] - Driver has been saved in cache [C:\Users\Edward.wdm\drivers\chromedriver\win32\101.0.4951.41] Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear! Tweets did not appear!

Process finished with exit code 0

shaikhsajid1111 commented 2 years ago

Tweets did not appear! The above message denotes that the selectors are not up to date with the current Twitter front-end. So, I checked twitter's front-end, and I don't find any breaking changes. Just now I tested it on my machine as well, it is working fine. Can you check if you're on the latest version which is v0.1.5?

edward-lzy commented 2 years ago

Tweets did not appear! The above message denotes that the selectors are not up to date with the current Twitter front-end. So, I checked twitter's front-end, and I don't find any breaking changes. Just now I tested it on my machine as well, it is working fine. Can you check if you're on the latest version which is v0.1.4?

Yes, I checked. I intalled it by pip3 install twitter-scraper-selenium But my version is v0.1.5? Requirement already satisfied: twitter-scraper-selenium in c:\users\edward\appdata\local\programs\python\python39\lib\site-packages (0.1.5)

I also re-installed it but I still have the same problem.

edward-lzy commented 2 years ago

Tweets did not appear! The above message denotes that the selectors are not up to date with the current Twitter front-end. So, I checked twitter's front-end, and I don't find any breaking changes. Just now I tested it on my machine as well, it is working fine. Can you check if you're on the latest version which is v0.1.4?

Oh, I just found what the problem is. Gosh, I was stupid. I set the para until 05-01 and the para since 05-10.