Skip to main content

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 hashes)

Uploaded Source

Built Distribution

pysimepar-0.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

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