一种用于刮刮的气象数据包
agrimetscraper的Python项目详细描述
农用铲运机
简介
agrimetscraper对agrimet气象数据进行抓取和汇总,以供以后使用。
基本用法
首选python虚拟环境
pip install agrimetscraper
startproject -p <yourproject> -t <select database type: mongodb or sql or atlas>
它将为您的项目创建一个目录,此文件夹将包含项目配置、项目日志、项目数据库和项目工作站
If you choose 'atlas', the program will prompt you for your atlas connection string and the password
CD到您的项目中,如果需要,请更改.ini文件
agrimet api有两个基本url:一个是daily,另一个是instant,都是在ini文件中定义的
运行项目:python run project.py-f“instant”“daily”-n dbtable
在.ini文件中设置调度程序(此程序使用crontab)
**对于即时数据,程序会将15分钟聚合为1小时间隔,并对参数进行平均