Tool for tracking down who added specific tag. It exists as a Python package, so you need to write a Python script to use it (see an example below).
Will work fine for tags used on a small scale.
As it will use editing API to retrieve old versions of each object, it is acceptable to use it sparingly. For serious uses lease use less hacky tool (import planet history)
But for investigating who added tag appearing 1017 times every few days? Should be fine.
It can be useful to
- notify editors about tagging discussion
- easily track down who was adding specific tag which is unclear/dubious/problematic
Usage example
import who_added_this_tag
import rich
config = {
'key': 'related:wikipedia',
'value': None, # may be None - in such case it looks for all values of key
'area_identifier_key': None, # may be None, in such case search is worldwide, 'ISO3166-1' is a good identifier
'area_identifier_value': 'PL', # ignored if area_identifier_key is None
'list_all_edits': True,
'list_all_edits_made_by_this_users': [], # ignored with list_all_edits set to True
'download_engine_used': "overpass", # postpass can be also used
'queried_object_limit': 5_000,
}
data = who_added_this_tag.statistics.process_case(config)
for entry in data:
rich.print(entry)
note: experimental who_added_this_tag.statistics.process_case(config, download_engine_used="postpass") is also available
Run tests
python3 -m unittest
pypi
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file who_added_this_tag-0.0.3.tar.gz.
File metadata
- Download URL: who_added_this_tag-0.0.3.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dbe76cbf89ec7a2cb5acbbdbde96d444447e466a19fe3649d5a2c34b50eb290
|
|
| MD5 |
50fed72c4483293ba29e7c2153ee9ee9
|
|
| BLAKE2b-256 |
85fcdf0e345c8e6006ecead39f77463c2f763f58dbd96f6061e9a8392c2ca73f
|
File details
Details for the file who_added_this_tag-0.0.3-py3-none-any.whl.
File metadata
- Download URL: who_added_this_tag-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133402892c7b89cd6d6d68ab5f8bd4f1d15e3b83569acb6defe6b8d89063077b
|
|
| MD5 |
76504c64ffde19547644e7df7221474e
|
|
| BLAKE2b-256 |
1b88d39e96136fb2e038e8f92c52bcc396c6bf19adbf20f5f9af8acd6fbce445
|