1,775 questions
2
votes
1
answer
81
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:
...
2
votes
1
answer
1k
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/...
3
votes
1
answer
70
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 ...
1
vote
2
answers
92
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 ...
-1
votes
1
answer
106
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 ...
0
votes
1
answer
164
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. ...
-2
votes
1
answer
144
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 ...
1
vote
1
answer
112
views
Get namespace of current page MediaWiki userscript
So, I'm creating a Wikipedia user script, and for it, I need to get the current namespace and get a true or false value. I tried using wgCanonicalNamespace , but this did not work. Here is another ...
1
vote
1
answer
88
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 ...
0
votes
1
answer
91
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 ...
0
votes
1
answer
150
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?
...
1
vote
1
answer
677
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 ...
0
votes
1
answer
62
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 ...
1
vote
1
answer
269
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:...
-2
votes
1
answer
107
views
bs4-approach to wikipedia-page: getting the infobox
i am currently trying to apply a bs4-approach to wikipedia-page: results do not store in a df
due to the fact that scraping on Wikipedia is a very very common technique - where we can use an ...