How yishunzhikong/gettemperature works
This small script fetches daily temperature data for a configured city and date range from Tianqi, then writes date/minimum/maximum rows to an Excel workbook. The main block owns date iteration, workbook creation, row writes, and saving; getTemp performs the HTTP request and parses the response. The README documents the workflow. The graph is limited to the sampled single-file implementation.
Main entry points: getTemperature.py Date-range export
Components 5
Temperature export
- Date-range export
getTemperature.py - Daily fetch and parse
getTemperature.py - Excel workbook
getTemperature.py
Other components
- Script operator
- Tianqi weather site
Connections 7
- Script operator → Date-range export: runs configured
- Date-range export → Daily fetch and parse: requests each day
- Daily fetch and parse → Tianqi weather site: requests page
- Tianqi weather site → Daily fetch and parse: returns HTML
- Daily fetch and parse → Date-range export: returns temperatures
- Date-range export → Excel workbook: writes rows
- Date-range export → Excel workbook: saves XLSX