chinaAQI-0.1.2
توضیحات
the data scrapied from http://datacenter.mep.gov.cn/report/air_daily/air_dairy.jsp?
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chinaAQI-0.1.2 |
| نام | chinaAQI |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | myjiayan |
| ایمیل نویسنده | ludlows@foxmail.com |
| آدرس صفحه اصلی | https://github.com/ludlows/chinaAQI |
| آدرس اینترنتی | https://pypi.org/project/chinaAQI/ |
| مجوز | UNKNOWN |
#coding:utf8
Description:
The chinaAQI means china city Air Quality Index which is announced by china government
everday since 1st.Jan.2014.
Each row contains six elements:
(1.number 2.city name 3.date 4.air quality index 5.air quality degree 6.primary pollutan)
'1', '������', '2015-12-28', '149', '�����Ⱦ', 'PM2.5'
How to use:
Python version: 3.0 or above
pip install chinaAQI
import datetime
import chinaAQI
city = '������'
start = datetime.date(2015,1,1)
end = datetime.date(2016,1,1)
crawler = chinaAQI.Crawler(city, start, end)
crawler.scrapy()
print(crawler.data)
Conntact me:
ludlows@foxmail.com
https://github.com/ludlows/chinaAQI
نحوه نصب
نصب پکیج whl chinaAQI-0.1.2:
pip install chinaAQI-0.1.2.whl
نصب پکیج tar.gz chinaAQI-0.1.2:
pip install chinaAQI-0.1.2.tar.gz