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

Error - Please Help #17

Open
liderj10 opened this issue Dec 10, 2022 · 0 comments
Open

Error - Please Help #17

liderj10 opened this issue Dec 10, 2022 · 0 comments

Comments

@liderj10
Copy link

liderj10 commented Dec 10, 2022

Hi please forgive my lack of knowledge, I am not very familiar with this kind of stuff.
I have been trying to scrape using this tool and keep getting the same error.
I must have tried 100 times and it stops at different points, I've gotten as high as 80% and as low as 1% completed.
If anyone could advise me it would be greatly appreciated thankyou.

File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\site-packages\requests-2.28.1-py3.7.egg\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\site-packages\yts_scraper-0.1.1-py3.7.egg\yts_scraper\main.py", line 153, in main
scraper.download()
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\site-packages\yts_scraper-0.1.1-py3.7.egg\yts_scraper\scraper.py", line 359, in download
self.__initialize_download()
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\site-packages\yts_scraper-0.1.1-py3.7.egg\yts_scraper\scraper.py", line 183, in __initialize_download
page_response = requests.get(url, timeout=5, verify=True, headers=headers).json()
File "C:\Users\Jordan\AppData\Local\Programs\Python\Python37\lib\site-packages\requests-2.28.1-py3.7.egg\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

EDIT: I cant remember if i was running the "-M" command at the time of the error above, however i also have a problem where it just finishes on a random percent of completion without any error messages. As stated above i know very little on the subject so apologies in advance if its some stupid little mistake lol. Thanks in advance.

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

1 participant