1,775 questions
Score of -6
1 answer
404 views
.NET regex to detect missing full stops in thumbnails captions on French Wikipedia
There are no full stops at the end of some thumbnail captions on fr.wikipedia.org, but this is mandatory in most cases in French typography (cf. fr:WP:TYPO § POINTS, in French).
I would like a .NET ...
Score of 2
1 answer
114 views
Wikipedia denies access froom my Android app (through retrofit)
I have an Android app (a word game) that relies on grabbing random pages from Wikipedia. I wrote this a couple of years ago and it worked just fine. Then recently (say, June 2025) I started to get:
...
Score of 2
1 answer
1569 views
Specify Contact info in Wikipedia User Agent Policy
I was trying to use some Wikipedia images for a Python script, but I came across an error:
Error: 403 Client Error: Forbidden. Please comply with the User-Agent policy: https://meta.wikimedia.org/wiki/...
Score of 2
1 answer
93 views
Removing a named reference and all its calls with AutoWikiBrowser and .NET regexes
I wonder if it would be possible to create a .NET regular expression that would delete a reference named Wikipedia containing a certain text, as well as all its calls in the page that don't contain ...
Score of 1
2 answers
115 views
Regex for a date not preceded by = or |
I'm looking for a regular expression to use with AutoWikiBrowser (flavour .NET) that allows me to encapsulate simple dates in Wikipedia.fr {{date}} template, but not if they're preceded by an = (which ...
Score of -1
1 answer
127 views
MediaWiki API to upload images to commons.wikipedia.org
currently i am able to upload the images to test.commons.wikipedia
using the code taken from the original mediaWiki
but the images are being uploaded to https://upload.wikimedia.org/wikipedia/test
i ...
Score of 0
1 answer
236 views
How can one scrape any table from Wikipedia in Python?
I want to scrape tables from Wikipedia in Python. Wikipedia is a good source to get data from, but the data present is in HTML format which is extremely machine unfriendly and cannot be used directly. ...
Score of -2
1 answer
166 views
How to import `wikipedia` module in Python [duplicate]
I am running a Python script which downloads articles from Wikipedia. I have tried to install wikipedia and wikipedia-api but none seem to work.
#!/usr/bin/env python
# Copyright (c) Microsoft ...
Score of 1
1 answer
153 views
Get namespace of current page in MediaWiki userscript
So, I'm creating a Wikipedia userscript, and I need to get the current namespace. I tried using wgCanonicalNamespace, but this did not work. Here is another script I tried but did not work.
const ...
Score of 1
1 answer
94 views
Is it possible to return multiple properties in one call?
I want to return the title, first five sentences and the main image from a random wikipedia article.
Is it possible to do this in a single call?
I'm using PHP.
First call works fine and gets the title ...
Score of 0
1 answer
106 views
Why does the CSRF token from the Wikimedia API only work for 1-2 hours after login, then stop working?
I am using the Wikimedia API with Basic Authorization and Cookie-based authentication. Initially, after logging in, I can retrieve the CSRF token without issues. However, after about 1-2 hours, any ...
Score of 0
1 answer
199 views
Download Audio Dataset from WikiMedia Commons
I am working on a project that requires an audio dataset from this page
text It shows the audio files but I am unable to figure out how to download the whole dataset at once.
Can anyone help me out?
...
Score of 1
1 answer
812 views
Enabling dark mode in MediaWiki installation [closed]
On a relatively fresh installation of the latest MediaWiki on a standard LAMP setup, everything works great, except I can't get dark mode working.
On the MediaWiki Dark Mode page it is claimed that ...
Score of 0
1 answer
74 views
How to disable string processing in wikipedia-1.4.0 API? [duplicate]
When using the https://pypi.org/project/wikipedia/ API, wikipedia==1.4.0, it seems that when accessing the page, the library would first do some string processing to alter the inputs, e.g.
import ...
Score of 1
1 answer
336 views
I have a Script error in Miraheze, I want to try to index the field 'wikibase' (a null value)
I have imported to my Miraheze site the Módulo:Ficha from the Spanish Wikipedia but I get this error:
Lua error on line 567: attempt to index field 'wikibase' (a nil value).
Reverse trace:
Module:...
