Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to scrap tweets, if first tweet or pinned tweet contains only an image #67

Open
trustedlain opened this issue Jul 22, 2019 · 5 comments

Comments

@trustedlain
Copy link

Trying to run your test script with the random user https://twitter.com/preta_6 whos first tweet is only a picture, running the basic example from your readme.md gives me this error.

File "twitterTest2.py", line 3, in <module> for tweet in get_tweets('preta_6', pages=1): File "/home/username/twitterToMastodon/env/lib/python3.7/site-packages/twitter_scraper.py", line 78, in get_tweets yield from gen_tweets(pages) File "/home/username/twitterToMastodon/env/lib/python3.7/site-packages/twitter_scraper.py", line 42, in gen_tweets replies = int(interactions[0].split(" ")[0].replace(comma, "").replace(dot,"")) ValueError: invalid literal for int() with base 10: '1\xa0256'

@bisguzar
Copy link
Owner

Which python3 version you are running with?

@trustedlain
Copy link
Author

I'm using python 3.7.3

@bisguzar
Copy link
Owner

Can you update source with referenced to #45 and check for output?

@vranki
Copy link

vranki commented Jan 10, 2020

I am seeing this now with any account, even the example code in README. Version is 0.3.0, latest from PyPi.

@bisguzar
Copy link
Owner

@vranki the version stored in pypi is deprecated. I don't have permissions to push never versions to PyPI (cc @kennethreitz ). Please install from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants