when using pywikipedia to upload an image on my wiki, I get the following error whatever the image:
ERROR: UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 687: ordinal not in range(128)
information on my envt:
frproasi01(elan)[…
I want to use a regex that matches anything but when it finds a special character stop from matching.] I want to use this pattern \*\s*\[\[.* and when become this : ]] it stops matching.
For example it should match * [[anything here]] or * [[]] and…
I want to start a mediaWiki based site, but rather than manually adding categories and subcategories I want to add them in an automated fashion, where I provide something like an xml file and the bot/script/algorithm/... goes through the list and…
I have always thought that there is no possible formatting on the command line, as everything I have read says.
However, I recently discovered that pywikipedia (a python bot framework for automatically editing wikipedia-style wikis) can output text…
UPDATE 10 Secs later
Fixed properly now, and thanks to JF and Gauden.
UPDATE
I have found a temporary fix by saving the IDLE file in the directory the other working file is in. (I would still like to know how to fix it entirely if I can.)
That's not…
I have written a script for Wikipedia & it works fine on my computer, yet when I upload it to my web host(Dreamhost) it doesn't work & says that the user I am trying to log in as is blocked-this is not true, it works on my computer & I#m not…
I have an extensive list of Geonames IDs for which I want to find the matching Wikidata IDs. I would like to use Pywikibot and, if possible, iterate over the list.
The SPARQL query for an individual Geonames ID would be:
SELECT DISTINCT ?item…
I've developped a Python script which use Pywikibot.
The scripts works fine on Windows 11 but i need to run it on Linux Server with CentOS 7.
But, there was an issue involving a missing module named _lzma.
File…
By default pywikibot makes a cache directory apicache-py3 and a file throttle.ctrl in the current directory, from where I run my Python script.
I would like pywikibot to put those elsewhere, e.g. in ../data. How can I direct pywikibot, from my…
I have my family file, user-config.py and user-password.py in the directory that i am running the following script from
import os, sys
import pywikibot as…
I have been using an outdated version of Pywikibot and Python 2 and finally got around to upgrading to Python 3 and Pywikibot 8. All support for "sysop" accounts seems to have been removed and there's no documentation I can find on how to work with…
I have currently written this block of code in which the correct number of bots is returned, but upon checking with the https://xtools.wmcloud.org/articleinfo/en.wikipedia.org/Planet_of_the_Apes?botlimit=100#auto-edits page. I can see the bots with…
I am trying to log pywikibot into a mediawiki I am running on my local computer through Wanpserver.
When I try to login.py I get
(base) PS C:\core_stable> python pwb.py login.py
WARNING: No user is logged in on site mediawiki:mediawiki
ERROR:…
I have the following query from the WikiData query builder to fetch people, but I would like to fetch only people who are alive. I've tried playing around with date of death but I can't get anything that seems to work, I'm not very familiar with…