I am using Pywikibot at this moment, to add a lot of files in a category, and the Edit summary looks like this: "Bot: Adding category Taken with Sony DSC-WX350)"
I would like to add the text "using Pywikibot in automatic mode"
How to do that?
I have a text file (in.txt) containing a list of Wikimedia Commons files and I want to add the category [[Category:Fruits]] to all of them, how can I do that?
I can't find the option to specify the name of the category, so the script is prompting me…
im trying to extract the "also known as"-information from wikidata.
E.g., by visiting the page of elvis(https://www.wikidata.org/wiki/Q303), i want to reach the information "Elvis, Elvis Aaron Presley, The King, The King Of Rock'n'Roll"
I'm using…
I am trying to access data from wikidata using pywikibot. I am trying to do this with the name of the data object and not the code.
When I run this script:
import pywikibot
site = pywikibot.Site("wikidata", "wikidata")
repo =…
I’ve been having problems with speeding up Pywikibot. I’ve seen related questions here on StackOverflow, but they only partially apply to my problem:
I set throttle=False wherever I could, but the bot is still very slow.
I can’t use the…
I ran a pywikibot sample code,
but it is aborted due to AttributeError.
Traceback is ...
Traceback (most recent call last):
File "pwb.py", line 270, in
if not main():
File "pwb.py", line 264, in main
run_python_file(filename,…
How to find out the name of an item having the wikidata code Q89 (apple) , for properties I made a dictionary,but for item code I can't find anithing , I am using pywikibot for other operations , it is there any function do that?
I somehow want extract type information from Wikipedia. For example, I want to find:
list of all "Carolina Panthers players"
list of all "colors"
list of all "NFL teams"
list of all "month"
Any ideas if there is a clean way of doing this?…
I wrote the following programme to delink the English words in a ta.wikipedia page. Delink means removal of square brackets which are before and after the English words. I am new to PAWS(pywikibot). It seems that to removal can done by…
I have been racking my brain for a while with this task. I have tried, without success to use the Mediawiki Nuke extension and pywikibot. I am missing something simple here I know it. I can't seem to identify the pages correctly because none of the…
I am developing a Wikipedia bot to analyze editing contributions. Unfortunately, it takes hours to complete a single run and during that time Wikipedia's database replication delay—at some point during the run—is sure to exceed 5 seconds (the…
I am looking for a way to find out whether an item with a certain label and description already exists on Wikidata. This task should be performed by the Pywikibot. I don't want my Bot to create a new item if it already exists. So far, my code looks…
Problem
Why can't I set this variable html_str equal to the wikisum string variable? Is it a simple syntax error?
Code
import wikipedia
from django.db import models
from django.template import Template, Context
wikisum = wikipedia.summary("Julius…
I am fixing the spell of some articles withreplace.pyby replacing "choeur" by "chœur".
There are also file links in the mediawiki syntax :
[[Fichier:Menditte (Pyr-Atl, Fr) choeur de l'église.JpG|thumb|Chœur de l'église]]
Editing that kind of thing…