{"id":16510569,"url":"https://github.com/wragge/trove_query_parser","last_synced_at":"2025-10-26T09:43:53.136Z","repository":{"id":62585317,"uuid":"376206779","full_name":"wragge/trove_query_parser","owner":"wragge","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-29T06:22:39.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T15:49:55.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wragge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-12T05:07:02.000Z","updated_at":"2021-10-05T00:36:16.000Z","dependencies_parsed_at":"2025-03-02T07:43:57.467Z","dependency_job_id":"153c842d-4b65-493b-a28b-65436dccfeb5","html_url":"https://github.com/wragge/trove_query_parser","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"fastai/nbdev_template","purl":"pkg:github/wragge/trove_query_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wragge%2Ftrove_query_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wragge%2Ftrove_query_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wragge%2Ftrove_query_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wragge%2Ftrove_query_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wragge","download_url":"https://codeload.github.com/wragge/trove_query_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wragge%2Ftrove_query_parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266302530,"owners_count":23908170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T15:55:57.479Z","updated_at":"2025-10-26T09:43:53.081Z","avatar_url":"https://github.com/wragge.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trove query parser\n\u003e Convert a query from the Trove web interface into a set of parameters that can be used with the Trove API.\n\n\n## Installation\n\n`pip install trove-query-parser`\n\n## How to use\n\n* Construct a search in the Trove 'Newspapers and Gazettes' category.\n* Copy the search url.\n* Feed the url to the `parse_query` function\n\nThe second parameter to `parse_query` is the Trove API version number. The default is `2` for backwards compatibility.\n\n```python\nfrom trove_query_parser.parser import parse_query\n\nparse_query('https://trove.nla.gov.au/search/category/newspapers?keyword=wragge\u0026l-artType=newspapers\u0026l-state=Queensland\u0026l-category=Article\u0026l-illustrationType=Cartoon', 3)\n```\n\n\n\n\n    {'q': 'wragge',\n     'l-artType': 'newspapers',\n     'l-state': ['Queensland'],\n     'l-category': ['Article'],\n     'l-illustrated': 'true',\n     'l-illustrationType': ['Cartoon'],\n     'category': 'newspaper'}\n\n\n\nSee the [documentation](https://wragge.github.io/trove_query_parser/) for a more detailed example.\n\n## Limitations\n\nCurrently this only works with the 'Newspapers \u0026 Gazettes' category. Other categories may be added in time.\n\n----\n\nCreated by [Tim Sherratt](https://timsherratt.org) ([@wragge](https://twitter.com/wragge)) for the [GLAM Workbench](https://glam-workbench.net/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwragge%2Ftrove_query_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwragge%2Ftrove_query_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwragge%2Ftrove_query_parser/lists"}