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

AttributeError: 'Keyword' object has no attribute '_Keyword__driver' while trying to search #16

Open moayadeldin opened 2 years ago

moayadeldin commented 2 years ago

When I execute the code example in readme file it gives the attribute error mentioned in title.

code: from twitter_scraper_selenium import scrap_keyword

scrap 10 posts by searching keyword "india" from date 30th August till date 31st August

india = scrap_keyword(keyword="india", browser="firefox", tweets_count=10,output_format="json" ,until="2021-08-31", since="2021-08-30") print(india)

moayadeldin commented 2 years ago

@shaikhsajid1111 I tried to run the code again and it still gives me the same error, I don't know whether there is anything I should change in my code.

shaikhsajid1111 commented 2 years ago

It was running fine even before the changes, checked with Windows 7, 10 and Mac OS as well. Can you please check if your project name is not conflicting with this library's keywords or something?, If that doesn't works then can you please share your environment like OS, Python version?