Get parliament bills for Australian governments.
Project description
Aus Bills
This is a package is for obtaining parliament bills for Australian governments.
Install via pip
pip3 install git+https://github.com/KipCrossing/Aus-Bills
Current governments that are supported:
- Australian Federal Government
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.
python setup.py sdist
git tag -a v0.0.8 -m "update version 0.0.8"
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)
bill.bill_text_links
bill.explanatory_memoranda_links
or you can use the url string to create an instance of Bill():
bill = Bill(bill_five["URL"])
and you can get the data dump as a dict:
bill.data
Todo
- get second reading debate links
- get third reading links
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.0.8.tar.gz
.
File metadata
- Download URL: ausbills-0.0.8.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d46f0b4228ac0be4c186a55dfc2c89cd34d77584264367982a939bb0d98029 |
|
MD5 | 8ef8fd04c881826ff493237adfc54a05 |
|
BLAKE2b-256 | cd2dc22550ae5591b55f797378473810c48e040d67fca6545206ce1fb9043422 |
File details
Details for the file ausbills-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ausbills-0.0.8-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184d023a61563321827c9523d76d1c3e602b96d6ff6a99bfdb400a15dbc4305a |
|
MD5 | d2e3d68c370a7e226aa446b25ea85ed1 |
|
BLAKE2b-256 | 55f4573217b081421e01ce3978f33a94cbcadd67fd95a12b72764e6910dee587 |