Page MenuHomePhabricator

How to change the default uploading time in PAWS
Closed, InvalidPublic

Description

I am new to programming and learning from youtubes but I wrote a sucessfull script (Python 3) to do a find and replace task in many pages of Tamil Wikimedia. The default uploading time is 10 seconds. How can i change the time, into 60 seconds? I tried

-putthrottle:60

method (as in pywikibot) in the terminal. But the default uploading time is not changing.

My code is

import csv
import pywikibot

with open('category-list.csv', 'r') as csvfile:
    reader = csv.reader(csvfile,delimiter="~")
    for row in reader:
        booktitle=row[0]
        site = pywikibot.Site('ta', 'wikipedia')
        page = pywikibot.Page(site, booktitle)
        page.text = page.text.replace('கொலொம்பியா','கொலம்பியா')
        page.save()

Event Timeline

Info-farmer updated the task description. (Show Details)
Info-farmer updated the task description. (Show Details)Oct 11 2016, 7:33 AM
Restricted Application added a subscriber: pywikibot-bugs-list. · View Herald TranscriptOct 12 2016, 5:04 PM
yuvipanda removed yuvipanda as the assignee of this task.Jun 7 2017, 4:56 PM
yuvipanda added a subscriber: yuvipanda.
Mpaa added a subscriber: Mpaa.Jun 7 2017, 6:50 PM

Try:

import pywikibot.config2 as config
config.put_throttle = 60
Chicocvenancio closed this task as Invalid.Feb 25 2018, 9:25 PM