Giter Club home page Giter Club logo

weather's Introduction

爬虫山东重庆各地区天气预报

Alt text

天气数据获取工具

这个简单的Python脚本用于从**天气网获取天气数据,并将数据保存到Excel文件中。

功能

输入中文省份名称,获取该省份下所有城市的天气数据。
数据保存到指定文件夹中,文件名格式为:时间_省份_城市.xlsx。

使用方法

安装必要的库

pip install -r requirements.txt

运行code文件下的weather.py脚本:

python weather.py

输入中文省份名称,脚本会自动获取天气数据并保存到天气数据文件夹。

运行程序

双击weather.exe运行程序,输入中文省份名称,会自动获取天气数据并保存为excel文件。

配置

默认输出文件夹:天气数据
默认输出文件名:当天日期-当前时间-省份.xlsx

依赖

pandas
openpyxl
pypinyin

注意事项

请确保网络连接正常,否则无法从**天气网获取数据。
确保已经安装所需的依赖。

weather's People

Contributors

wcowin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.