Scrape data from allabolag.se.
Project description
This is a scraper for collecting data from allabolag.se. It has no formal relationship with the site.
It is written and maintained for Newsworthy, but could possibly come in handy for other people as well.
Installing
pip install allabolag
Example usage
from allabolag import Company
company = Company("559071-2807")
# show all available data about the company in a raw...
print(company.raw_data)
# ...or cleaned format
print(company.data)
And you can iterate the list of recent liquidations.
from allabolag import iter_liquidated_companies
for company in iter_liquidated_companies(until="2019-06-01"):
print(company)
Developing
To run tests:
python3 -m pytest
Deployment
To deploy a new version to PyPi:
Update Changelog below.
Update version in setup.py
Build: python3 setup.py sdist bdist_wheel
Upload: python3 -m twine upload dist/allabolag-X.Y.X*
…assuming you have Twine installed (pip install twine) and configured.
Changelog
0.1.7
Bug fix: Add encoding for Python 2.7
0.1.6
Fixes bug when company has remark about Svensk Handels Varningslistan
0.1.5
Make Python 2.7 compatible.
0.1.4
Updating _iter_liquidate_companies to handle rebuilt site.
0.1.3
Bug fixes
0.1.0
First version
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
Built Distribution
Hashes for allabolag-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d54e68c5dd1097f12cb63ad73264c14aa0eea2c5d0d85a8d11920dc3c427f0d |
|
MD5 | 4604c58633be0ecc5f559e49d1af415e |
|
BLAKE2b-256 | e2915c9b5be05a3613b3f0f2da086dddea75916811a15461c229538f06f3e468 |