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
- Link: saih-duero-scraping
B. How to use it...
B.1 - Install python pacakge with pip tool.
pip install saih-duero-scraping
B.2 - Example of code.
- Source code: example.py
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff87004c72c1fe2f47f069992b230830b257f101bbe34cf676ec9dc84c11abe8
|
|
| MD5 |
f9f70c3c037886c1c07d6c7ff0f5b05a
|
|
| BLAKE2b-256 |
0c6d29d93122cae0331b495e327a1890ef272f9e87fc0b4ccb5323d5c11bfe3f
|
File details
Details for the file saih_duero_scraping-1.0.5-py3-none-any.whl.
File metadata
- Download URL: saih_duero_scraping-1.0.5-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb860c1fca81065adfb728b37e67507ce76d50c7cb870b4f9fd6cb6f7523835c
|
|
| MD5 |
be17424a93856a85972e113d456960de
|
|
| BLAKE2b-256 |
fb759d543fa1fe5515875ccdf4ca41acea5073f5f751062bccd40278509c4e26
|