Wikipedia talk:Database reports/Page count by namespace/Configuration
Latest comment: 7 years ago by MZMcBride in topic import settings
![]() | To help centralise discussions and keep related topics together, please start new conversations at Wikipedia talk:Database reports. |
import settings
editwhich module is required for your settings? can you please also comment the version numbers, that are used to install and run the required packages, please? (Mika77 (talk) 10:27, 9 January 2017 (UTC)).
- Hi Mika77. I've pasted an example
settings.py
file below. As for wikitools, you can grab the latest version from <https://github.com/alexz-enwp/wikitools> and it should just work. Do you have a Tool Labs shell account? Updating most of these database reports requires access to the MariaDB database replicas on Tool Labs. --MZMcBride (talk) 23:55, 9 January 2017 (UTC)
username = 'BernsteinBot'
password = 'passwordgoeshere'
editsumm = '[[WP:BOT|Bot]]: Updated page.'
dbname = 'enwiki_p'
host = 'enwiki.labsdb'
rootpage = 'Wikipedia:Database reports/'
apiurl = 'https://en.wikipedia.org/w/api.php'
# Report details (multi-page)
blankcontent = '{{intentionally blank}}'
blanksumm = '[[WP:BOT|Bot]]: "Blanked" page.'