Forums

simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Hi Team,

I have installed a package called pycricbuzz from git hub (https://github.com/codophobia/pycricbuzz/tree/master/pycricbuzz) when am use the module am getting status code as 403 and try to print the response in json am getting simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0).

The above mentioned error may be because of the 403 status code. In that case, could you Please add the package pycricbuzz in whitelist It will be helpful in accessing the module from Pythonanywhere.

it wouldn't be the package that we add to the whitelist, it would be the url that it is accessing. Let us know what url you want whitelisted, and also provide a link to documentation on that domain that shows that it is an open api, and we'll consider it for inclusion into the whitelist.

We cannot whitelist Python packages. The whitelist applies to sites. Send us a link to the API dopcumentation for the service that the library is using and we'll consider it for the whitelist.

Hi Conrad/Glenn,

Hope you doing great and thanks for the reply.

The url which am trying to access is http://mapps.cricbuzz.com/cbzios/match/livematches for an enrty point, and the complete use and the documentation is in https://shivammitra.com/python/cricket-library-for-python/

Please check the link and do the needful to use the pycricbuzz in pythonanywhere.

Thanks Partha

that doesn't seem like the official documentation by cricbuzz.com

hi conrad,

Sorry, I could not find the official api document for cricbuzz.com, I found the alternate for the cricbuzz that is https://www.cricapi.com/

Please find the api document in this link https://www.cricapi.com/assets/CRICAPI-Developer-Guide-v1.1.pdf

No problem. I have added cricapi.com to the whitelist.

Thank a lot :)

Hi Conrad and Glenn, I can see cricapi.com does not contain the all the desired information that we get from cricbuzz.Can you please whitelist the cricbuzz api ,so that we can access the cricbuzz api.

Sampleurl:- http://mapps.cricbuzz.com/cbzios/match/{id} http://mapps.cricbuzz.com/cbzios/match/livematches http://mapps.cricbuzz.com/cbzios/match/{id}/commentary http://mapps.cricbuzz.com/cbzios/match/{id}/scorecard.json

Can you send me the api documentation?

Hi Conrad,

I am also facing some error while accessing the package: pycricbuzz

Its seems that we are unable to access - mapps.cricbuzz.com

We are still waiting for the documentation, so we can tell if we should whitelist it.

Hi Team can you please whitelist the below urls ?

  • https://cdn-api.co-vin.in/api/v2/admin/location/states
  • https://cdn-api.co-vin.in/api/v2/admin/location/districts/
  • https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=

@bvenkata -- could you provide us with official documentation for those endpoints?

@ pafk I hope this will help https://apisetu.gov.in/public/marketplace/api/cowin

@ pafk Please let me know once its done