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

Does this work? #191

Open
CarloCobal opened this issue Jul 25, 2021 · 10 comments
Open

Does this work? #191

CarloCobal opened this issue Jul 25, 2021 · 10 comments

Comments

@CarloCobal
Copy link

If so how?

@bisguzar
Copy link
Owner

Not working for now, refactor/fix required.

@nsde
Copy link

nsde commented Mar 31, 2022

Traceback (most recent call last):
  File "/home/lix/.local/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/home/lix/.local/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/home/lix/.local/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/home/lix/.local/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/lix/anaconda3/lib/python3.9/site-packages/twitter_scraper/modules/tweets.py", line 170, in get_tweets
    yield from gen_tweets(pages)
  File "/home/lix/anaconda3/lib/python3.9/site-packages/twitter_scraper/modules/tweets.py", line 37, in gen_tweets
    html=r.json()["items_html"], url="bunk", default_encoding="utf-8"
  File "/home/lix/.local/lib/python3.9/site-packages/requests/models.py", line 917, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0

@bisguzar
Copy link
Owner

Still not working @nsde . I'm not sure will I fix it. PRs are welcome.

@psylopunk
Copy link

Still not working :(

Repository owner deleted a comment from mahrtayyab Apr 17, 2022
@FarisHijazi
Copy link

do you know where the issue is? to get us started and save us time

@shelsoloa
Copy link

@FarisHijazi I'm going to look into this a bit today. Any chance you found the start of the issue? The error linked by @nsde is the same one I'm experiencing.

@shelsoloa
Copy link

@mahrtayyab works for me - thanks!

Repository owner deleted a comment from mahrtayyab Sep 19, 2022
@ege-del
Copy link

ege-del commented Oct 21, 2022

@bisguzar can the repo owner please weigh in ? Since I am not familiar with Twitter's API (they wont let me use it), I cant figure out why it's not working. Which one of these is more likely ?

  1. They blocked the method this project uses
  2. Updated API causes faulty requests
  3. Other bugs in the project itself

@bisguzar
Copy link
Owner

I guess the first one, but I didn't debug it yet. I'm just predicting @ege-del

@david1asher
Copy link

not working for me

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

8 participants