https://github.com/jplusplus/uc_scraper
A scraper of statistical data from uc.se, built on top of Statscraper.
https://github.com/jplusplus/uc_scraper
Last synced: 3 months ago
JSON representation
A scraper of statistical data from uc.se, built on top of Statscraper.
- Host: GitHub
- URL: https://github.com/jplusplus/uc_scraper
- Owner: jplusplus
- License: mit
- Created: 2020-03-19T14:57:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T20:31:56.000Z (almost 4 years ago)
- Last Synced: 2025-11-28T09:25:20.305Z (7 months ago)
- Language: HTML
- Size: 15.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
This is a non-official scraper for statistical data from the (https://www.uc.se/konkursstatistik)[uc.se] built on top of the `Statscraper package `.
The scraper is limited to the data availble through https://www.uc.se/konkursstatistik
Install
-------
.. code:: bash
$ pip install uc_scraper
Example usage
-------------
.. code:: python
from uc import UCScraper
# Init scraper
scraper = UCScraper()
# List all available datasets
print(scraper.items)
# [, , ]
# Select a dataset
dataset = scraper.items["Branschstatistik"]
# List all available dimensions
print(dataset.dimensions)
#
# Make a query
res = dataset.fetch() # Get latest available data by default
# Analyze the results with Pandas
df = res.pandas
# You are able to query month ranges
res = dataset.fetch({"from": "2019-06"})
res = dataset.fetch({"from": "2019-06", "to": "2019-07"})
Develop
-------
Set up:
.. code:: bash
$ pip install -r requirements.txt
Run tests:
.. code:: bash
$ make tests
Deploy to pypi (assuming you have Twine installed, if not `pip install twine`)
.. code:: bash
$ make tests