/AQI-Air-Quality-Index

AQI - Air Quality Index. Download and store the AQI Dataset as csv file using Python using the apis.

Primary LanguagePythonMIT LicenseMIT

AQI Air Quality Index

About

Download and store the Air Quality Index Dataset as csv using Python with the apis used in National Air Quality Index

How to use ?

  • Set Hour, Year, Month, Starting and ending day of the month in AQI.py file
hour = 15
year = 2020
month = 4
s = 1
e = 0 or monthrange(year, month)[1]
  • Uncomment set the State Name at line 23 for that state Dataset only
if k['stateID'] == 'Delhi':
  • Run the script
py AQI.py
  • After retrieval it will saved as AQI.csv for given period of time

(check the above AQI.csv)