Get current parliament bills from Australian governments.
Project description
Aus Bills
This is a package is for obtaining parliament bills for Australian governments.
Install via pip
pip install ausbills
Current governments that are supported:
- Australian Federal Government
Australian Federal Government
This module had methods for scraping the Australian Federal Parliament website, using beautiful soup.
The bills are scraped to get data from both the house and the senate:
from ausbills.federal_parliment import all_bills, Bill
print(all_bills)
bill_five = all_bills.data[5]
all_bills.data
is a list of all current bills and some basic data in the form of a dict. The rest of the data may be obtained via the Bill() object.
bill = Bill(bill_five)
print(bill.summary)
print(bill.sponsor)
print(bill.bill_text_links)
print(bill.explanatory_memoranda_links)
or you can use the url string to create an instance of Bill():
bill = Bill(bill_five["url"])
or the id
bill = Bill(bill_five["id"])
You may also change the date format:
bill = Bill(bill_five["id"],"DD/MM/YYYY")
and you can get the data dump as a dict:
bill.data
Contributing
We use BeautifulSoup to scrape the bills from the Bills websites. so make sure you become familiar with the docs here.
Fork the repo and install requirements
pip3 install -r requirements.txt
Each state should their own bills and corresponding website. Add a python file for a new state in the /ausbills dir. the python file should have the naming convention: wa_parliment.py
for Western Australia for example. Make sure we all agree on method/object/output conventions (use federal_bills as a guide). Once you are happy, update the README on method usage and make a Pull Request.
Upgrade package
Change VERSION in setup.py, then:
git tag -a 0.1.0 -m "update version 0.1.0"
git push origin 0.1.0
Todo
- Write better usage docs
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file ausbills-0.2.0.tar.gz
.
File metadata
- Download URL: ausbills-0.2.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c813bd5b58cb76a239b2c59faf47f776f405e9506c65026c951455e9da29769e |
|
MD5 | 1043ef5e7d539592d3e8dc5d09fe8718 |
|
BLAKE2b-256 | e28a190c05a599ce2e79819ca2d2a9c4d7eacc857aecfd0bd2600cf246aa781c |
File details
Details for the file ausbills-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ausbills-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85407d0ff8ae137e9517991d47d9f0a65ea786af1c18f7903fc9ad3d6e8dc38c |
|
MD5 | 97ae5828f1e59e2d16dbf38fce2ee95c |
|
BLAKE2b-256 | 679a778ea12142e52ffe22948c3dd2dbb9506b48afd5509f30558c7a2413e08b |