twintproject / twint

An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
MIT License
15.66k stars 2.72k forks source link

ValueError: Cannot find twitter account with name = realDonaldTrump #763

Open crazyZSShuo opened 4 years ago

crazyZSShuo commented 4 years ago

File "E:/TwitterScrapy/twint/twitter_spider.py", line 9, in twint.run.Search(c) File "E:\TwitterScrapy\twint\twint\run.py", line 329, in Search run(config, callback) File "E:\TwitterScrapy\twint\twint\run.py", line 228, in run get_event_loop().run_until_complete(Twint(config).main(callback)) File "c:\users\10848\appdata\local\programs\python\python37\lib\asyncio\base_events.py", line 587, in run_until_complete return future.result() File "E:\TwitterScrapy\twint\twint\run.py", line 154, in main await task File "E:\TwitterScrapy\twint\twint\run.py", line 171, in run raise ValueError("Cannot find twitter account with name = " + self.config.Username)

elamje commented 4 years ago

I'm getting the same issue with various accounts as well!

xiaoeva commented 4 years ago

Me too

caspx commented 4 years ago

Here as well. But it only occurs when installing twint from the git repo (i.e. pip3 install . -r requirements.txt from the repo directory) The issue does not occur when installing from pip (i.e. pip3 install twint)

xiaoeva commented 4 years ago

Here as well. But it only occurs when installing twint from the git repo (i.e. pip3 install . -r requirements.txt from the repo directory) The issue does not occur when installing from pip (i.e. pip3 install twint)

Thanks for this! I was able to solve the issue by removing twint and reinstalling it with pip.

elamje commented 4 years ago

Yeah, I figured out the issue. When you install from pip, it copies the repo to your /bin/ folder to allow you to run the "twint" command line function. I was trying to change the code inside of my personal dev/twint directory rather than the bin/twint directory that the "twint" command actually uses.