Skip to main content

Python package for web scraping operations over Saih Duero web page.

Project description

Saih Duero Scraping - Python Package

Source code to build a python package for web scraping operations over Saih Duero web page and save data as CSV file.

A. Pypi - Python Repository Package

B. How to use it...

B.1 - Install python pacakge with pip tool.

pip install saih-duero-scraping

B.2 - Example of code.

from saih_duero_scraping.gauging_collection import GaugingCollection
from saih_duero_scraping.gauging_enum import GaugingStation
from saih_duero_scraping.hydrologic_years import HydrologicYears
from saih_duero_scraping.data_downloader import DataDownloader

datadownloader = DataDownloader()

# You can add a simple URL.
datadownloader.add_url(
    GaugingCollection[GaugingStation.Leon].gauging_code, 
    HydrologicYears.year_2018
)

# You can add several URLs.
datadownloader.add_urls(
    [
        dict(
            gauging_code = GaugingCollection[GaugingStation.MorlaDeLaValderia].gauging_code, 
            hydrologic_year = HydrologicYears.year_2018
        ),
        dict(
            gauging_code = GaugingCollection[GaugingStation.MorlaDeLaValderia].gauging_code, 
            hydrologic_year = HydrologicYears.year_2019
        ),
        dict(
            gauging_code = GaugingCollection[GaugingStation.MorlaDeLaValderia].gauging_code, 
            hydrologic_year = HydrologicYears.year_2020
        ),
        dict(
            gauging_code = GaugingCollection[GaugingStation.MorlaDeLaValderia].gauging_code, 
            hydrologic_year = HydrologicYears.year_2021
        )
    ]
)

# Finally to call the method to download the data sets.
datadownloader.download_data()
  • Ouput:
#TODO

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

saih_duero_scraping-1.0.5.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

saih_duero_scraping-1.0.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file saih_duero_scraping-1.0.5.tar.gz.

File metadata

  • Download URL: saih_duero_scraping-1.0.5.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for saih_duero_scraping-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ff87004c72c1fe2f47f069992b230830b257f101bbe34cf676ec9dc84c11abe8
MD5 f9f70c3c037886c1c07d6c7ff0f5b05a
BLAKE2b-256 0c6d29d93122cae0331b495e327a1890ef272f9e87fc0b4ccb5323d5c11bfe3f

See more details on using hashes here.

File details

Details for the file saih_duero_scraping-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for saih_duero_scraping-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eb860c1fca81065adfb728b37e67507ce76d50c7cb870b4f9fd6cb6f7523835c
MD5 be17424a93856a85972e113d456960de
BLAKE2b-256 fb759d543fa1fe5515875ccdf4ca41acea5073f5f751062bccd40278509c4e26

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