1,089 questions
Score of 1
1 answer
165 views
Wikipedia API returns empty body
I'm calling the Wikipedia API in Go using the http package. However, the response from Wikipedia is 200 OK and an empty body.
My code is below:
package main
import (
"fmt"
"net/...
Score of -1
1 answer
125 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 1
1 answer
143 views
Understanding Wikipedia titles batching API
With the MediaWiki API we can query the Wikipedia API. One of the fields is titles where one or more titles can be queried at the same time. Batching them together is recommended in high load ...
Score of -2
1 answer
162 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 0
1 answer
105 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
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 0
1 answer
53 views
Wikipedia API allpages generator returns duplicate titles
I have an issue while trying to download all the page titles in Wikipedia:
I'm using a generator=allpages in order to download all of the article titles and using the clcontinue parameter to get the ...
Score of 0
0 answers
84 views
Wikipedia API: how to parse content of(*) text into JSON?
I'm making a request to the MediaWiki API to get information about a specific page, but I'm having trouble parsing the content of the revisions. Here's an example request I'm using: http://yugioh....
Score of 1
1 answer
1643 views
Wikipedia API: How to get article on a specific date?
I want to find a way to get the contents of a Wikipedia article on a specific date. For example, I'd like to see an article in the version it was on January 1 2022.
To do this manually or with ...
Score of 1
1 answer
167 views
Wikipedia short descriptions via API
Wikipedia has in the past few years added short descriptions to most pages, which are useful super-short snippets giving an overview of the topic of a page:
https://en.wikipedia.org/wiki/Wikipedia:...
Score of 0
2 answers
98 views
How to get all wikipedia accounts made within timeframe?
I'm trying to replicate this paper, where they use a random sample of user accounts made between September 9th, 2010 and February 14th, 2011. How can I use the wikipedia API to get this data?
I can't ...
Score of -1
1 answer
138 views
Problem getting sentences from Wikipedia when redirect needed
Could use a little push. I'm trying to use the 'wikipedia' module to pull information for various topics to use with my custom voice assistant. I'm running into issues when Wikipedia has a redirect ...
Score of 0
2 answers
396 views
React useQueries making several get requests when each request depened on previous one (continue params)
I'm looking to fetch pages from wikipedia API.
for the sake of keeping this short I won't explain in deep, but the bottom line is that i need to use what returned in previous request (when resolved) ...
Score of 0
1 answer
83 views
Do I need to sanitise HTML from MediaWiki API
I am using the MediaWiki API to get contents of wikipedia pages and display them on a webpage.
Normally I would just use the DOMPurify library to sanitise any HTML before I render it however for some ...
Score of 0
1 answer
86 views
Increasing the length of the Snippets in Mediawiki API
I have been using the Mediawiki API for our bot, it returns the response in JSON format. The actual content of user query is the value of the "Snippet" (Snippet is the Key). The problem ...