A python package to retrieve forecast data from SIMEPAR
Project description
pysimepar
This a is python package to retrieve forecast data from Simepar (www.simepar.br). Since this package tries to webscrape information from simepar webpage, small changes to that webpage may break the parsing.
Install
You may install it using pip:
pip install pysimepar
Usage
Import the packge in your code and instantiate the PySimepar class with your city code:
from pysimepar import PySimepar
s = PySimepar(4106902)
To retrieve the forecast data, just call the update method. The current condition, hourly_forecast and daily forecast will be at the class data dictionary:
s.update()
print(s.data)
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
pysimepar-0.3.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file pysimepar-0.3.tar.gz
.
File metadata
- Download URL: pysimepar-0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0851802f2f499563a16c70a3d803ed33f68fd08c8bf400ce7c5007c04ec4d85c |
|
MD5 | bbe709fa40b2a4cdf255516572bdea19 |
|
BLAKE2b-256 | d1a1c49999e591626ca10cbf74af4334c545503d44244dcc349390dd60e0d4a6 |
File details
Details for the file pysimepar-0.3-py3-none-any.whl
.
File metadata
- Download URL: pysimepar-0.3-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 267e4f75dc66cc21bd9786ea71020c9568ff969878672e5bc47034fc8da12f55 |
|
MD5 | 34ffb94fdd5f46d8a26bfdc379958ea8 |
|
BLAKE2b-256 | 8cbe4a8a3e417af452a13a2a79ac1931d7ed8b6fe32c25a45d945383c0f77430 |