Page MenuHomePhabricator

Fix obaid's tool by using pywikibot
Open, Needs TriagePublic

Description

obaid@tools-bastion-03:~$ become obaid
tools.obaid@tools-bastion-03:~$ cd pywikipedia
tools.obaid@tools-bastion-03:~/pywikipedia$ python editcounternobot.py
Executing query:
SELECT user_name, user_editcount FROM user WHERE user_name NOT IN (SELECT user_name FROM user_groups INNER JOIN                      user ON user_id = ug_user WHERE ug_group = 'bot') ORDER BY user_editcount DESC LIMIT 100;
WARNING:
Your account on wikipedia:ur is blocked by MediaWiki default.
Reason: Anonymous contributions are not allowed from your IP address (10.68.23.58). Please log in.
Editing using this account will stop the run.

Logging in to wikipedia:ur as Obaid-bot via API.
Login failed. Wrong password or CAPTCHA answer?
API login failed, retrying using standard webpage.
Logging in to wikipedia:ur as Obaid-bot
Login failed. Wrong password or CAPTCHA answer?
Password for user Obaid-bot on wikipedia:ur
No characters will be shown:

Event Timeline

2526 created this task.Aug 27 2017, 2:32 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 27 2017, 2:32 PM
Reedy added a subscriber: Reedy.Aug 27 2017, 3:58 PM

You probably want to login as Obaid-bot via a web browser, and complete the captcha before trying pywikipedia again

Please note that pywikipedia is an old version of what is now named Pywikibot. You can use the last version on tools by entering python /shared/pywikipedia/core/pwb.py yourscriptname.py.
It will solve many of your problems, as you have a version that dates from Tue Sep 13 07:26:43 2016 (git log on /data/project/obaid/pywikipedia).
Don't hesitate to tell if I can help you.

Framawiki renamed this task from Anonymous contributions are not allowed from your IP address to Fix obaid's tool by using pywikibot.Aug 27 2017, 6:28 PM
Framawiki updated the task description. (Show Details)