Wikidata-dl

Latest version: v2023.7.27

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2023.07.27

Add `--timeout` CLI option to change or turn off `httpx` request timeouts. See issue 5.

2022.11.04

A major release with new features and significant changes.

New Features

- All Wikidata items returned in query results will be downloaded if `--items` is set, regardless of their variable name.
- Set the language for individual items using the `--language` option and a [Wikimedia language code](https://meta.wikimedia.org/wiki/Table_of_Wikimedia_projects)

Backwards Incompatible Changes

- By default the query result will be downloaded as a single CSV file.
- To download individual Wikidata items, you need to set the `--items` flag.
- Items will be stored in a language directory, `en` by default.
- The CLI option `--cache-lifetime` was renamed to `--cache-time`, `-t` can be used as a short form.
- Command output is printed to the console and not saved in a log file.
- Requires Python 3.9 or higher.
- Modules and functions were renamed or removed.

2022.03.04

* Add ValueError exception when trying to fetch wikidata.

2021.02.05

* Handle LookupError when calling get_wikidata.

2019-11-20
* Print number of results returned by query before download starts.
* Add --dry-run option to only print number of results.

2019.10.04

First release of wikidata-dl.

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.