648 questions
1
vote
0
answers
40
views
LinkedIn OpenID Connect – 403 Error: Missing r_emailaddress / r_liteprofile scopes despite configuration
We're implementing a LinkedIn login for our non-profit platform built with MediaWiki. We're using OpenID Connect and following the official Microsoft documentation step-by-step.
However, we encounter ...
3
votes
1
answer
98
views
How to grab a parsed Mediawiki page with attached CSS? [closed]
I've successfully managed to extract a page using
?action=parse, but the resulting page is quite ugly and lacks the necessary CSS styling to make it look good. I've been googling for a while, trying ...
-1
votes
1
answer
98
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 ...
-2
votes
1
answer
87
views
How to upload a file to commons.wikimedia.org with an API?
I want to upload many files, doing it with HTML UI will require a lot of repetitive actions. How to authorize and upload files programmatically?
1
vote
1
answer
96
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 ...
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 ...
1
vote
1
answer
138
views
Trying to confirm I am correctly passing the User-Agent header to a wikimedia api (using julia)
My question as I understand it: When using Downloads package functionality in Julia, how can I be sure I am correctly passing the header ("User-Agent" or "Api-User-Agent" = my ...
0
votes
0
answers
35
views
MediaWiki API Error: badrequest while attempting to change password using changeauthenticationdata
Description:
I am trying to use the MediaWiki API to change a user's password with the changeauthenticationdata module. However, every time I make the request, the API returns an error with code ...
1
vote
1
answer
567
views
How to download images using wikimedia commons API
I'm attempting to complete an app that I need to download images from Wikimedia Commons using their API, in a similar way to using their online search at https://commons.wikimedia.org/. Using their ...
0
votes
1
answer
185
views
How to delete Multiple Users in Mediawiki
I want to delete Multiple users from the Mediawiki, Who has never contributed to a page.
Do we have any extensions for that or do we have to use SQL query and delete them from DB?
I have tried ...
0
votes
1
answer
134
views
I am attempting to pass an infobox value into a LUA module that outputting an answer based on the infobox value (FANDOM WIKIA)
I am working on a module that converts the value of a specific value into a new value when mutliplying it by a certain percentage. EX 100 * 1.3754 = 137.54. When I use the module, it spits out my ...
0
votes
0
answers
62
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....
2
votes
0
answers
53
views
Why is this Scala method failing to successfully call the Mediawiki API login?
Here is my Scala code:
def login(botUN: String, botPW: String): Option[String] = {
try {
val s = requests.Session(verifySslCerts = false)
val params0 = Map("...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
58
views
Wiki search API page title search
I am trying to search for pages that contain specific title and Coord template.
However, I am getting strange behavior.
For example, searching for Taj Mahal, the following query returns decent result.
...
2
votes
1
answer
150
views
Get all articles from specific wikipedia Portal
I'm trying to put together a list of all articles under the Portal:Water
(e.g. json "url": "https://en.wikipedia.org/wiki/Heavy_water", "title": "Heavy water" )...
0
votes
0
answers
41
views
MediaWiki API executing JavaScript from URL parameters
I've noticed a concerning behavior in my MediaWiki installation's API endpoint (api.php) where it seems to be executing JavaScript code passed as URL parameters directly.
For instance, when I make a ...
0
votes
1
answer
147
views
Is there a way to fetch Wikipedia/Wiktionary HTML only for the main article body?
A decade or more ago I used to do quite a bit of hacking on Wiktionary and MediaWiki. I seem to remember that I used to use some method to get the HTML of a page without most of the interface like ...
0
votes
0
answers
148
views
MediaWiki API error: Login failed: Unable to continue login. Your session most likely timed out
I try logging in with .php script into my local MediaWiki page. I am using a bot account credentials. But I am getting this error
Login failed: Unable to continue login. Your session most likely timed ...
0
votes
0
answers
69
views
wikipedia php api plcontinue
I am having such a hard time with the wikipedia API. I am trying to continue to the next batch of links using the continue url. here is my code. The problem is that the wikipedia API returns the exact ...
-1
votes
1
answer
198
views
How do I import and use the Javascript MediaWiki API?
This seems way to basic but there just aren't examples available and the documentation is bad in a very typical way. They don't say how to import the library.
I'm trying to use the MediaWiki ...
0
votes
1
answer
69
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 ...
0
votes
1
answer
156
views
Configuring Pywikibot to use a wikimedia install's bot
I have installed a wikimedia instance on a cloud server. I think the 'Family' is properly set up because I can, as an example, retrieve the content from the main page as:
# Set up the site
site = ...
3
votes
1
answer
782
views
403 error when using MediaWiki REST API to `compare` revisions
NOTE: The bug in the API has now been fixed, and this issue no longer arises.
I'm building a simple tool for myself that will display the difference between revisions on Wikipedia using (by sending a ...
0
votes
1
answer
98
views
Edits made by Pywikibot edits not showing up in Recent Changes
As the title says, I cannot see the edits made via the API with Pywikibot in Recent Changes, even with all filters removed. I can see the list of edits when I go to the User Contributions page of the ...
1
vote
1
answer
598
views
Unable to login when using the MediaWiki API
I would like create new user accounts in my local MediaWiki using the MediaWiki API using a simply Python script.
Based on the documentation, it is my understanding that I must first login as an ...
0
votes
1
answer
51
views
Get Pages of Top Results from Search Using pymediawiki
I am trying to use the pymediawiki Python library to extract data from the MediaWiki API.
What I want to do is get the top 10 hits for a particular search term and then get the relevant page for each ...
0
votes
1
answer
174
views
Creating a C# Script to login to WikiMedia Api
I am trying to create a script to login to a private Wiki so that I can make changes. This is the code I created to do this. When I send this login token request I successfully get a login token. ...
0
votes
1
answer
164
views
Parsing response returned by mediawiki api
PS - Scroll down to the bold italic thing for my question; everything else is context
The program is pretty simple (which makes how long I've struggled with every aspect of it even more embarrassing) ;...
3
votes
0
answers
170
views
Bulk convert Media Wiki pages to HTML (either via API or locally from saved wikitext)
I'm trying to get the actual HTML of about 600-700 pages hosted on a Media Wiki. I have thought of/tried the following:
Option 1
Action API with action=parse: works well, takes about 0.75 seconds per ...
1
vote
1
answer
397
views
How to properly configure the Visual Editor extension installation on MediaWiki (V1.38) with docker-compose and Ubuntu 20.04?
so I explain my problem.
I have a MediaWiki instance in version 1.38 that works perfectly locally.
This instance is running with docker-compose. Here is my YAML file:
version: '3.7'
services:
...
0
votes
0
answers
45
views
What is the fish-like symbol in MediaWiki query API element
I have captured an example JSON call that mobile Wikipedia app is calling. I don't know what the marked fish-like symbol is:
I thought that I can simply omit it:
https://en.wikipedia.org/w/api.php?...
0
votes
0
answers
330
views
PowerShell & Mediawiki - Unable to get CSRF Token
I'm preparing a powershell script to bulk edit mediawiki pages but I have some problem with the csrf-token, the only value that is returned is "+\", what I'm missing ?
Code written so far:
...
1
vote
1
answer
248
views
API call to get Wikimedia Commons user's uploads with categories and wikitext
How do I modify the example at https://commons.wikimedia.org/wiki/Commons:API/MediaWiki#Get_files_uploaded_by_a_particular_user to also list the categories each page is
in, the wikitext of the page, ...
1
vote
0
answers
90
views
Is it possible to add a page to every user's watch list? (Mediawiki)
I would like to create a general discussion page for my small wiki (Mediawiki Version 1.39.1). It would be best if every user is notified if something is written on the page. For this I have installed ...
1
vote
1
answer
480
views
With the Mediawiki API, how can we fetch a version of a Wikipedia page other than the latest?
The MediaWiki API can be used to fetch Wikipedia pages. In the docs, they only show how to fetch the latest version of a page. However, I know that Wikipedia stores every version of every page. Is ...
1
vote
1
answer
570
views
User not receiving email to confirm email address in MediaWiki
I'm setting up a MediaWiki page. I go to Preferences after I have logged in with my admin account. I try to send a confirmation email at my email address. I don't receive anything.
I'm the owner of ...
0
votes
0
answers
42
views
SPARQL query timing out for WIkidata
I am trying to run a SPARQL query. As soon as I try to query schema:about for a query , the query starts timing out. I am trying to write a query to get all cities with population greater than X. Am ...
0
votes
3
answers
2k
views
How do I make API call to login?
I am using MediaWiki as my backend and I have it running on 'localhost/name'.
My login.js file:
import React, {useState} from 'react';
import axios from 'axios';
function Login() {
const [...
0
votes
0
answers
95
views
How do I get all links of a Wikipedia page, not including the ones in the navbox at the bottom?
I want to get all the links on the Wikipedia page Charles Maurice de Talleyrand-Périgord, but without all the links within the navboxes at the bottom of the page. I've been using the links prop (e.g. ...
1
vote
1
answer
150
views
Search for Q-ID (from Wikidata) with Twitter Username ID. (Python)
I have a list of verified Twitter User-IDs.
data['screen_name'] = [MOFAJapan_en, serenawilliams, JeffBezos ....]
data['twitter_ids'] = [303735625, 26589987, 15506669 ....]
and I want to get their ...
0
votes
2
answers
147
views
Is there a maintenance script that can change all links on pages after a changing the name of a namespace?
Currently, we have about 100 pages under a certain namespace, let's say 'Foo:'. Much more pages contain references to such pages, like so: [[Foo:Hello|Hello]]. If we change the namespace from 'Foo:' ...
1
vote
1
answer
1k
views
MediaWiki, trying to investigate VisualEditor "Error contacting the Parsoid/RESTBase server (HTTP 500)"
A lot of people have the same error for many different reasons, so, after trying a composer update, I've tried to investigate it starting from the browser and reconstructing step by step what is ...
0
votes
1
answer
112
views
How to use "WHERE column LIKE" sql query in core MediaWiki
I have just started developing and modifying extensions. Currently, I'm modifying an extension in which I have to show matching page results with the searched term entered by the user.
Here I'm using ...
1
vote
1
answer
249
views
How to search all WikiNews articles under specific category?
I'm trying to use WikiMedia API (https://www.mediawiki.org/wiki/API:Main_page) to search all articles under specific categories (https://en.wikinews.org/wiki/Category:News_articles_by_section). For ...
0
votes
1
answer
220
views
How to get the Entity of Wikipedia in other language through MediaWiki
I have a list of English Wikipedia title (Wikipedia items) and want to get the their Chinese title. Is there any python methods through MediaWiki can do it?
2
votes
0
answers
156
views
Extract data from Wikitext
I have some wikitext (edited from the Wikipedia article) in a string:
{{Short description|Romanian low-cost airline}}{{distinguish|Air Bleu|Airblue|Blue1|Blue Panorama Airlines|JetBlue|Pacific Blue ...
0
votes
2
answers
123
views
WikiMedia API - How to determine which portal(s) a Page belongs to?
I wish to determine whether a given Wikipedia page belongs to a certain Wikipedia Portal using the MediaWiki API. So far, I have been experimenting with the page properties of the API but I cannot ...
0
votes
3
answers
872
views
Elasticsearch query for wikipedia pages
I have indexed all wikipedia pages on elasticsearch, and now I would like to search through them according to a list of keywords that I have created. The documents on elasticsearch have only three ...
0
votes
1
answer
733
views
mediawiki API does not see the csrf token
When running my own mediawiki on localhost I run into a problem with the api endpoint for editing a page. The api works fine otherwise. For instance when querying tokens I get the following output:
$ ...