HLS-scraper
This project is a webscraper for the Historical Dictionary of Switzerland (HDS).
Installation
pip install hlsscraper
Usage
Please use the already scraped hls_base.csv from 12.12.2022 as basis so only updates and new records need to be fetched. This will help not to stress HLS servers to much.
import hlsscraper
hlsscraper.scrape(
base_csv_path=f"{os.getcwd()}/data/hls_base.csv",
update_csv_path=f"{os.getcwd()}/data/hls_updates.csv",
new_csv_path=f"{os.getcwd()}/data/hls_new.csv",
last_scraping="12.12.2022",
crawl_delay=20, # as per https://hls-dhs-dss.ch/robots.txt
)
Development
# download a fresh python 3.9
conda create -n py39 python=3.9
# create a .venv inside the project and link against the Python 3.9 version installed through conda
poetry env use ~/.conda/envs/py39/bin/python
# install required packages defined in pyproject.toml into .venv
poetry install
# set up git hooks for autoformatting and linting (black, isort8, flake8) --> .pre-commit-config.yaml
pre-commit install
Release files for hlsscraper 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hlsscraper-0.0.1.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hlsscraper-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / hlsscraper-0.0.1.tar.gz
| Download URL | hlsscraper-0.0.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
923d4dc9da28e19e9076d60d1680d10cd939ec8dc33887136baf965519a52cee
|
|
BLAKE2b-256 checksum How to use checksums |
42611d1192617b19bf1be87d64908a59e4448945159c54a6d457549557e36b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.7 Darwin/21.5.0
|
Release files / hlsscraper-0.0.1-py3-none-any.whl
| Download URL | hlsscraper-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c97ff07970cfceb1aff08311e01b2726b5f40563567bfa5adbd26a31f21db43
|
|
BLAKE2b-256 checksum How to use checksums |
7ef029455a3460b2e33ce7b0ff77ae7853367875c57574522978f220786042ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.7 Darwin/21.5.0
|