Skip to main content

Functions for retrieving weather data from rp5.ru

Project description

weather_rp5

This package provides functions for automatically retrieving weather records from the rp5.ru website.

Installation

To install this project, run:

pip install weather_rp5

Example Usage

To get records for the weather station in Poitiers starting on February 1, 2024 and ending on April 1, 2024, you may use the following code:

from datetime import date
import pandas as pd
from weather_rp5 import get_station_id, get_weather_data

url = 'https://rp5.ru/Weather_archive_in_Poitiers_(airport)'
wmo_id = get_station_id(url)
start = date(2024, 2, 1)
end = date(2024, 4, 1)
df = get_weather_data(wmo_id, start, end, False)

If you need data from the airport (METAR) station, you may proceed as follows:

url = 'https://rp5.ru/Weather_archive_in_Sao_Paulo_(airport),_METAR'
station_id = get_station_id(url)
start = date(2024, 2, 1)
end = date(2024, 4, 1)
df = get_weather_data(station_id, start, end, True)

Acknowledgement

The functions for sending post requests were taken from https://github.com/KonstantenKomkov/weather.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather_rp5-1.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather_rp5-1.4-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file weather_rp5-1.4.tar.gz.

File metadata

  • Download URL: weather_rp5-1.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for weather_rp5-1.4.tar.gz
Algorithm Hash digest
SHA256 106649e62cba28435f2cc9a1fa656fa9b117d64faa51a6030d1a501b71fa191a
MD5 cf867065853a178185e707ffadc0b124
BLAKE2b-256 748ce3c7dcb84b922cda6be34356f6784c6a5dab9dda82a740576e1176f0a07f

See more details on using hashes here.

File details

Details for the file weather_rp5-1.4-py3-none-any.whl.

File metadata

  • Download URL: weather_rp5-1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for weather_rp5-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d158df9b2cbd486669c62e0de7bd2d52c65b784b1416c051fa6e9fb241567fff
MD5 e20afe2ad964e2615bc4c3437e787593
BLAKE2b-256 b7298489a24299c8440fd0d00ee5d1136b0707d1960b00cc1f2833ad2b0c52b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page