<jupyter_start><jupyter_text>Trove query parser> Convert a query from the Trove web interface into a set of parameters that can be used with the Trove API.  Installation`pip install trove-query-parser`  How to use * Construct a search in the Trove 'Newspapers and Gazettes' category.* Copy the search url.* Feed the url to the `parse_query` function.<jupyter_code>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')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.0, 'mean_word_length': 6.858974358974359, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '447276', 'license': 'MIT', 'n_tokens_mistral': 199, 'n_tokens_neox': 192, 'n_words': 55, 'path': 'index.ipynb', 'repo_name': 'wragge/trove_query_parser', 'size': '612'}