Wikidata bot that adds 'number of pages' (P1104) statements to items
- Run
pip install -U -r requirements.txt
- Add your credentials to the .env file or set the options as environment variables
- Then with your own Python script in the same directory:
import pagesbot
sandbox_qid = 'Q4115189'
pagesbot.parse_item(sandbox_qid, write_changes=False)