thejeshgn / cpcbccr

National Air Quality Index - Inidia - cpcbccr data scraping
https://thejeshgn.com/2020/02/14/scraping-national-air-quality-data/
GNU General Public License v3.0
19 stars 11 forks source link

pull.py not working #1

Open NoOne-play opened 11 months ago

NoOne-play commented 11 months ago

I was unable to execute pull.py. it runs but give response code 400 and unauthorized access in output database

jslorrma commented 10 months ago

Hello Thej,

I read your blog post here and from this post came across this repository. I tried to use your scraper scripts to load airquality data from India. Unfortunately the response status of the requests) in the pull.py script is always 400 and the whole response is 400 Bad Request {"detail": "unauthorized request"}.

Is it possible that an API key or a session cookie is now required for the API?

Since this issue already exists, I thought I would share my experience here instead of creating a new issue.