twitter-scraper-selenium icon indicating copy to clipboard operation
twitter-scraper-selenium copied to clipboard

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

Open moayadeldin opened this issue 2 years ago • 2 comments

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 avatar May 21 '22 15:05 moayadeldin

@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.

moayadeldin avatar May 22 '22 07:05 moayadeldin

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?

shaikhsajid1111 avatar May 22 '22 08:05 shaikhsajid1111