A Python 3 API for researchdata.ands.org.au
Project description
# Research-Data-Australia-API
researchdata.ands.org.au Python 3 API
## How To
#### Install
python3 -m pip install ResearchDataAU
#### Simple Query of Research Data Australia
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.query(q='unemployment')
#### A little more complex query
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.query(q='unemployment',
rows = 30,
year_from=1991,
year_to=2016,
group=['Central Queensland University', 'Australian National Corpus'])
#### Get a generator of 100 document items
from researchdata_au import ResearchData
rd = ResearchData()
gen_ = rd.query_for_docs(q='unemployment', rows=100)
#### Get a list of title/id tuples
from researchdata_au import ResearchData
rd = ResearchData(q='income', rows=30)
list_ = rd.get_titles_and_ids()
#### Look at an items details
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.object_details(object_id=444926)
#### Get external link of article
from researchdata_au import ResearchData
rd = ResearchData()
tup_ = rd.get_external_link(object_id=444926)
#### Filter by subject/area of research
from researchdata_au import ResearchData
rd = ResearchData(q='income')
json_ = rd.filter_by_subject()
##### Note: Object Id is the id for each article
researchdata.ands.org.au Python 3 API
## How To
#### Install
python3 -m pip install ResearchDataAU
#### Simple Query of Research Data Australia
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.query(q='unemployment')
#### A little more complex query
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.query(q='unemployment',
rows = 30,
year_from=1991,
year_to=2016,
group=['Central Queensland University', 'Australian National Corpus'])
#### Get a generator of 100 document items
from researchdata_au import ResearchData
rd = ResearchData()
gen_ = rd.query_for_docs(q='unemployment', rows=100)
#### Get a list of title/id tuples
from researchdata_au import ResearchData
rd = ResearchData(q='income', rows=30)
list_ = rd.get_titles_and_ids()
#### Look at an items details
from researchdata_au import ResearchData
rd = ResearchData()
json_ = rd.object_details(object_id=444926)
#### Get external link of article
from researchdata_au import ResearchData
rd = ResearchData()
tup_ = rd.get_external_link(object_id=444926)
#### Filter by subject/area of research
from researchdata_au import ResearchData
rd = ResearchData(q='income')
json_ = rd.filter_by_subject()
##### Note: Object Id is the id for each article
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
ResearchDataAU-0.1.2.tar.gz
(5.0 kB
view details)
File details
Details for the file ResearchDataAU-0.1.2.tar.gz.
File metadata
- Download URL: ResearchDataAU-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c62704567970a47d2da500a6fd3bfeebad0389fb2eb3caac4ba4878a1195771
|
|
| MD5 |
d9bd1fd16f7fca3a36195a1b52d70738
|
|
| BLAKE2b-256 |
eb91f20997fd0e7b6b7ff25634674d7b03cecc0b4acdd60206436f7b2d73d21c
|