-
Hi! I am trying to add some new population statements for Brazilian municipalities. I am planning to adapt some pywikibot code I used for death counts:
I am trying to figure out if there is a way to do it using WikibaseIntegrator. Can anyone show me some pointers? Thanks! (@LeMyst or @dpriskorn ) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hello @lubianat I'm not sure if you want more info about setting a rank or updating population. I think https://github.com/LeMyst/wd-population/blob/master/communes_fastrun.py can be a good start. Line 98 I set all the rank to NORMAL (maybe do this only of claims who are actually preferred, to avoid setting a DEPRECATED to normal, I will fix this in my version 😅 ) If you have more question about the fastrun mode, you can ask them ;) |
Beta Was this translation helpful? Give feedback.
-
oh, very good point about the deprecated ones!! I totally ignored it for the covid bot -- ops! Thank you so much for the reply! Maybe you can add a link to your handling somewhere in the repository, perhaps a "see also" section in the end of the README or something |
Beta Was this translation helpful? Give feedback.
-
I usually comment and link directly above code inspired by others. This way others can easily see which parts I got from where. 😊 |
Beta Was this translation helpful? Give feedback.
-
There is a "Other projects" section in the README: |
Beta Was this translation helpful? Give feedback.
Hello @lubianat
I'm not sure if you want more info about setting a rank or updating population.
I did the operation for French Population earlier this year and updated this repo (mainly the _fastrun part):
https://github.com/LeMyst/wd-population
I think https://github.com/LeMyst/wd-population/blob/master/communes_fastrun.py can be a good start.
Line 98 I set all the rank to NORMAL (maybe do this only of claims who are actually preferred, to avoid setting a DEPRECATED to normal, I will fix this in my version 😅 )
Line 108 I set my new claim (in append or replace mode) with the rank PREFERRED, if it already exist, it will be updated.
If you have more question about the fastrun mode, you can …