Wikipedia editing bot run by Scaledish
| Bot Task |
Status |
Description |
Activity
|
| Task 1
|
Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete.
|
U.S. Census
|
__-Trial
|
Tasks
1: U.S Census
ToDo · Request 1 · Request 2
- Doesn't add to a template if it sees there are multiple of it on the same page
- Doesn't overwrite info if it is same age or newer
- Data
- The same reference is used for each page:
{{Cite web |date=2020-04-01 |title=2020 Census Decennial Demographic and Housing Characteristics: Population by Place (Table P1) |url=https://data.census.gov/table/DECENNIALDHC2020.P1?t=Populations+and+People&g=010XX00US$0600000,$1600000&d=DEC+Demographic+and+Housing+Characteristics |archive-url=https://archive.is/XepMr |archive-date=2025-09-24 |access-date=2025-09-24 |website=Census Bureau Data}}
- This is because there isn't really a good way to programmatically generate stablerefs. I've had good luck with
https://data.census.gov/profile/${placeName.replace(' ','_')}?g=${placeGeoid}but that isn't really stable, not guaranteed to work, and most importantly doesn't represent a moment in time, like the moment the census was collected.
- I could also cite the API directly but I think this is the better route.
- Despite there being 40 thousand pages using {{US Census population}}, this script at most is capable of working on 30k of them at the moment, and the real amount is likely much smaller due to towns missing from Census data.
|