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

JSONDecodeError #2

Open
all3xfx opened this issue Mar 9, 2019 · 4 comments
Open

JSONDecodeError #2

all3xfx opened this issue Mar 9, 2019 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@all3xfx
Copy link

all3xfx commented Mar 9, 2019

When trying:
python3 parse.py -q='computer vision'

I have this error:

Traceback (most recent call last):
File "parse.py", line 116, in
start()
File "parse.py", line 108, in start
for idx, comps in enumerate(companies):
File "parse.py", line 61, in get_next_pages
'filter_data[markets][]':search_query}, headers=headers).json()
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(angelscrap) iMac:angel.co-companies-list-scraping alex$ python3 parse.py -q=‘visao’
Traceback (most recent call last):
File "parse.py", line 116, in
start()
File "parse.py", line 108, in start
for idx, comps in enumerate(companies):
File "parse.py", line 61, in get_next_pages
'filter_data[markets][]':search_query}, headers=headers).json()
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(angelscrap) iMac:angel.co-companies-list-scraping alex$ python3 parse.py
Traceback (most recent call last):
File "parse.py", line 116, in
start()
File "parse.py", line 108, in start
for idx, comps in enumerate(companies):
File "parse.py", line 61, in get_next_pages
'filter_data[markets][]':search_query}, headers=headers).json()
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/site-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/init.py", line 319, in loads
return _default_decoder.decode(s)
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/alex/anaconda/envs/angelscrap/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@all3xfx
Copy link
Author

all3xfx commented Mar 9, 2019

I couldn't correct this issue. Would you help me? Thanks.

@Rajput245
Copy link

i am getting the same error.

@iamtodor
Copy link
Owner

iamtodor commented May 8, 2019

I have checked it: the response code is 403 and the reason is Forbidden. I think https://angel.co/ have changed something or even closed this way to parse the site.

@iamtodor iamtodor added bug Something isn't working help wanted Extra attention is needed labels May 8, 2019
@tszjqgs
Copy link

tszjqgs commented Oct 22, 2019

same error I got , any one can help and resolve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants