
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Convert search parameters from the Trove web interface into a form the API understands.
Convert a query from the Trove web interface into a set of parameters that can be used with the Trove API.
pip install trove-query-parser
parse_query
functionThe second parameter to parse_query
is the Trove API version number. The default is 2
for backwards compatibility.
from trove_query_parser.parser import parse_query
parse_query('https://trove.nla.gov.au/search/category/newspapers?keyword=wragge&l-artType=newspapers&l-state=Queensland&l-category=Article&l-illustrationType=Cartoon', 3)
{'q': 'wragge',
'l-artType': 'newspapers',
'l-state': ['Queensland'],
'l-category': ['Article'],
'l-illustrated': 'true',
'l-illustrationType': ['Cartoon'],
'category': 'newspaper'}
See the documentation for a more detailed example.
Currently this only works with the 'Newspapers & Gazettes' category. Other categories may be added in time.
Created by Tim Sherratt (@wragge) for the GLAM Workbench.
FAQs
Convert search parameters from the Trove web interface into a form the API understands.
We found that trove-query-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.