[Wikitech-l] How to get Top 1000 contributors list?

2022-06-25 Thread Shrinivasan T
Hello all, I like to get top 1000 contributors for ta.wikipedia.org based on their usercontribution metric. is there any code this or api? Please share. Thanks. -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in

[Wikitech-l] How to get alerts on errors for cron jobs on toolforge

2021-06-22 Thread Shrinivasan T
Hello all, I have a bot at toolforge, running weekly once in cron job using "jsub" Followed the below link for the setup. https://wikitech.wikimedia.org/wiki/Help:Toolforge/Pywikibot Getting the JOBNAME.out and JOBNAME.err files at the home folder. Is there any other way like email notification

[Wikitech-l] Re: How to get python 3.6+ at toolforge?

2021-06-19 Thread Shrinivasan T
> You can use the Debian buster images with Kubernetes which have Python > 3.7.3 pre-installed. > I need to run the not as a cronjob in toolforge. I think I can setup the cron on toolforge server. This is plain python script. I don't need docker or kubernetes for this. Is there any way to get

[Wikitech-l] How to get python 3.6+ at toolforge?

2021-06-19 Thread Shrinivasan T
Hello all, I have a bot written in python3.8, which uses fstrings a lot. https://realpython.com/python-f-strings/ When deployed the bot on the toolforge, found that it has python3.5 Hence cant run the bot. It cant understand the fstrings. Is there any way we can get python version 3.6 or greate

[Wikitech-l] Re: Need help to login with pwb.py with a bot account

2021-06-19 Thread Shrinivasan T
> The relevant portion is {'result': 'Failed', 'reason': 'Incorrect username or > password entered. Please try again.'}. > > You should not be using the same password that is used to log in to the web > UI. For a BotPassword, see the configuration steps at > https://www.mediawiki.org/wiki/Manual

[Wikitech-l] Need help to login with pwb.py with a bot account

2021-06-19 Thread Shrinivasan T
Hello all, I am trying to run a pywikibot based bot on toolforge server. i logged into tool forge. Cloned the pywikibot. created the user-config.py and user-password.py with below content. cat user-config.py mylang = 'pa' family = 'wikisource' usernames['wikisource']['pa'] = 'WD-WS Integration

[Wikitech-l] Pywikibot login session period

2021-03-25 Thread Shrinivasan T
Hello all, I am exploring pywikibot to write few bots. When importing it as a library in my python code, on initial execution it asks to login to the relevant wiki site. Then it works as expected. How long this login session is stored? Is one time login enough? Will it ask to login after some

Re: [Wikitech-l] Releasing a small tool to explore wikipedia users contributions

2021-01-12 Thread Shrinivasan T
development and deploying on the toolforge. Shrini வியா., 26 நவ., 2020, பிற்பகல் 8:05 அன்று, Shrinivasan T < tshriniva...@gmail.com> எழுதியது: > Last week, we had a Indic Wikisource Proofreadthon 2020 event. see > here for full details > > https://meta.

[Wikitech-l] Releasing a small tool to explore wikipedia users contributions

2020-11-26 Thread Shrinivasan T
Last week, we had a Indic Wikisource Proofreadthon 2020 event. see here for full details https://meta.wikimedia.org/wiki/Indic_Wikisource_Proofreadthon_2020 Though I did not participate in this event, (feels sad for this. Life is too messy nowadays), I thought to build a small tool to give report

Re: [Wikitech-l] How to get a list of usercontribs for a given date range?

2020-11-19 Thread Shrinivasan T
வியா., 19 நவ., 2020, முற்பகல் 12:29 அன்று, Bartosz Dziewoński எழுதியது: > > The contributions are listed in reverse chronological order (newest > first), so your 'ucstart' and 'ucend' parameters also need to be > reversed ('ucstart' is the newer timestamp, 'ucend' is the earlier). > This works: >

[Wikitech-l] How to get a list of usercontribs for a given date range?

2020-11-18 Thread Shrinivasan T
Hello all, I want to get a usercontrib details of a wikisource user in given date range. Trying this https://ta.wikisource.org/wiki/Special:ApiSandbox#action=query&format=json&list=usercontribs&ucstart=2020-11-14T19%3A34%3A26.000Z&ucend=2020-11-17T19%3A34%3A26.000Z&ucuser=Fathima Shaila if I gi

[Wikitech-l] Online workshop on writing wikidata queries - June 21 2020 - 9 AM IST

2020-06-19 Thread Shrinivasan T
Hello all, This is a reminder that the "Writing Wikidata queries" workshop is coming up! It will take place this Sunday, June 21st at 9 am IST on the Zoom platform: https://wikimedia.zoom.us/j/99498586419 More details of the workshop are here: https://meta.wikimedia.org/wiki/SWT_Indic_Worksho

Re: [Wikitech-l] How to get total number of proofread and validated pages in any wikisource via api?

2020-05-15 Thread Shrinivasan T
> https://ta.wikisource.org/wiki/*Mediawiki:Proofreadpage_quality0_category* > > tells you that the “quality 0” category on that wiki is named “*உரை > இல்லாமல்*”; you can then find that category at > https://ta.wikisource.or

Re: [Wikitech-l] How to get total number of proofread and validated pages in any wikisource via api?

2020-05-15 Thread Shrinivasan T
> Extension:Proofread_Page uses categories to sort pages by quality, so > it would be easiest to use that system. The category names are defined > in Mediawiki:Proofreadpage_quality0_category through > MediaWiki:Proofreadpage_quality4_category, and you can query those > categories using the Categor

Re: [Wikitech-l] How to get total number of proofread and validated pages in any wikisource via api?

2020-05-09 Thread Shrinivasan T
Thanks for the info. Will explore them. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] How to get total number of proofread and validated pages in any wikisource via api?

2020-05-09 Thread Shrinivasan T
Hello all, How to get the counts for proofread and validated pages in a Wikisource project? What is the api for it? I like to bring graphs like below https://freeimage.host/i/img-20200510-034732-466.Jl1tuj Using api. Thanks. Shrini Thanks, Shrini

Re: [Wikitech-l] How to get number of articles or related metrics for indic wiki's ?

2020-05-09 Thread Shrinivasan T
Thanks Bryan, Exploring the links you gave. In the meantime, rolled out my own server to setup Prometheus and grafana. Wrote a custom exporter to get counts for indic Wikipedia sites. http://139.59.47.5:3000/d/kx1Pb36Zz/indic-wiki-stats Check the above dashboard. Will check if we can get the

[Wikitech-l] How to get number of articles or related metrics for indic wiki's ?

2020-05-08 Thread Shrinivasan T
Hello all, I am planning to build a grafana dashboard using Prometheus for the counts of all indic wiki articles. Have to get all the counts and write a custom exporter. Planning for a dashboard showing counts for articles in all indic languages. Another dashboard to show counts for all wiki

Re: [Wikitech-l] Mediawiki hacking starter guide

2020-02-27 Thread Shrinivasan T
> > https://commons.wikimedia.org/wiki/Category:Small_wiki_toolkits Thanks for the nice collection of slides. Do we have any video tutorials demonstrating these? If not, please plan to make video tutorials for wikitech beginners. They will bring more developers. -- Regards, T.Shrinivasan My

[Wikitech-l] Mediawiki hacking starter guide

2020-02-27 Thread Shrinivasan T
Hello all, We are planning on a India Hackathon. https://meta.wikimedia.org/wiki/CIS-A2K/Events/India_Hackathon_2020 To bring new developers and train them, looking for a developer guide or handbook/beginners guide. Do we any such starters guide? I think the below topics would be nice to be c

Re: [Wikitech-l] Book scans from Tuebingen Digital Library to Wikimedia Commons

2018-12-05 Thread Shrinivasan T
we used this script https://github.com/tshrinivasan/tools-for-wiki/tree/master/pdf-upload-commons to upload some 2000 public domain tamil books to commons. Explore the batch uploading to commons. If it is not apt for you, I can help to customize this script. Regards, T. Shrinivasan

Re: [Wikitech-l] How to make oauth authentication with wikipedia?

2018-07-27 Thread Shrinivasan T
> I'd hope that https://www.mediawiki.org/wiki/OAuth/For_Developers > covers this. The Commons Android app developers had a similar request in > https://phabricator.wikimedia.org/T179519 . The request for oauth fro commons app is rejected due to some legal issues. Seems we also have to use the r

[Wikitech-l] How to make oauth authentication with wikipedia?

2018-07-27 Thread Shrinivasan T
I am thinking on developing an android app to record audio and send to commons. Is there any such app available already? if not, we can make one. How to make the users login to the app with their wikipedia credentials? Please share the links for using wikipedia as oauth endpoint. Thanks. --

Re: [Wikitech-l] How to get all the page titles of a category from wiktionary?

2018-03-02 Thread Shrinivasan T
Thanks igal for the files and introducing petscan. https://petscan.wmflabs.org/ Using that I can get all the page names as csv file. Thanks for the tool makers too. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org

Re: [Wikitech-l] How to get all the page titles of a category from wiktionary?

2018-03-02 Thread Shrinivasan T
2018-03-02 23:41 GMT+05:30 יגאל חיטרון : > Hi. I just sent you the list, but it waits for moderation because it's too > big. > Igal (User:IKhitron) > Zip it and Send me to my email address directly. Share the quarry query or the used tool/code/script too. Thanks. -- Regards, T.Shrinivasan

[Wikitech-l] How to get all the page titles of a category from wiktionary?

2018-03-02 Thread Shrinivasan T
I was looking for a list of all Tamil nouns for long time. Found that wiktionary has a huge collection of all nouns. https://ta.wiktionary.org/s/30v this page lists 24,750 nouns and https://ta.wiktionary.org/s/4aa9 this page lists 60,553 nouns How can get all the page names using quarry servic

Re: [Wikitech-l] Web application to upload csv file to wiktionary

2017-09-15 Thread Shrinivasan T
> A web version of the command-line tool you wrote probably won't just > magically exist; if you don't have the time to write it, you can direct > people to PAWS which provides a browser-based console for running scripts. > Not as nice but still easier than setting up Python locally. > Pywikipediab

Re: [Wikitech-l] Web application to upload csv file to wiktionary

2017-09-14 Thread Shrinivasan T
Thanks for the replies. Here is my requirement. My CSV file has 1000 lines as word, meaning. Like to create 1000 pages in Wiktionary. The mentioned python script in my previous query will do this. But, need a web application for this do that any newbie can use it easily. I don't think dragging

[Wikitech-l] Web application to upload csv file to wiktionary

2017-09-14 Thread Shrinivasan T
Is there any tool as web application to upload CSV file to wiktionary? I have a command line tool here https://github.com/tshrinivasan/tools-for-wiki/tree/master/csv-uploader-wiktionary But it seems tough for newbies/windows users to execute this. Thinking of a web application. Please share inf

Re: [Wikitech-l] Wikimedia-AI needs help with Tamil ORES deployment

2017-06-11 Thread Shrinivasan T
I am working with Tamil Wikipedia team to get the details requested. Will share details in a week. On 8 Jun 2017 01:42, "zppix e" wrote: Hello, Wikimedia's AI team (side note: im unaffliated with wmf, was gaven permission to send this email) will need help with setting up some wordlists for t

[Wikitech-l] Fwd: Notes on Mediawiki Hackathon 2017, Vienna, Austria

2017-05-21 Thread Shrinivasan T
Hi friends, Got an opportunity to attend the mediawiki hackathon 2017 at vienna, austria on May 19,21 and 22. Here are my notes on the event. Day 1 - https://goinggnu.wordpress.com/2017/05/20/notes-mediawiki-hackathon-2017-vienna-austria-day-1/ Day 2 - https://goinggnu.wordpress.com/2017/05/2

Re: [Wikitech-l] Need example code in Javascript to login API

2016-11-02 Thread Shrinivasan T
Gergo Tisza, Recently, we added more then 2000 books to Tamil WikiSource using Google OCR with OCR4WikiSource https://github.com/tshrinivasan/OCR4wikisource Most of the books have 30-40% spell errors. To fix them, editing the pages manually is not easy. I am thinking of a browser plugin with the

[Wikitech-l] Need example code in Javascript to login API

2016-10-26 Thread Shrinivasan T
Hello all, I am trying to develop a chrome extension to work with wikipedia. Started exploring javascript for login api. Got this example. https://www.mediawiki.org/wiki/Example_login_code_in_JS_%28using_JQuery%29 Stored the code as test.html and opened in chrome. Got the following error. No

Re: [Wikitech-l] [Wikimediaindia-l] How to click custom html option button via api?

2016-05-04 Thread Shrinivasan T
import pywikibot from pywikibot import proofreadpage site = pywikibot.Site('ta','wikisource') page = pywikibot.Page(site, u"Page:") text = page.text pa = proofreadpage.ProofreadPage(page) pa.text = pa.text.replace('level="1"','level="3"') pa.save(summary="demo") === When I ran the a

Re: [Wikitech-l] [Wikimediaindia-l] How to click custom html option button via api?

2016-04-30 Thread Shrinivasan T
2016-04-27 19:30 GMT+01:00 John Mark Vandenberg : > Pywikibot has a class ProofreadPage which allows modification of level via > simple attributes and methods. > > https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/proofreadpage.py#L67 > > If you dont want to use Pywikibot, its code

Re: [Wikitech-l] How to click custom html option button via api?

2016-04-27 Thread Shrinivasan T
://phabricator.wikimedia.org/T133781 for providing api. Thanks to Reedy and Krenair in #mediawiki channel for providing info and reporting the issue. 2016-04-27 15:20 GMT+01:00 Shrinivasan T : > I am trying to work on https://ta.wikisource.org with python API. > > This tamil wikisource has custom html option b

[Wikitech-l] How to click custom html option button via api?

2016-04-27 Thread Shrinivasan T
I am trying to work on https://ta.wikisource.org with python API. This tamil wikisource has custom html option buttons to mention the edit status. See a screenshot here. https://snag.gy/f3aTBn.jpg How to enable these custom option buttons via API? Thanks. -- Regards, T.Shrinivasan My Life w

[Wikitech-l] Fwd: OCR4wikisource

2015-12-20 Thread Shrinivasan T
-- Forwarded message -- From: Shrinivasan T Date: 2015-12-19 4:45 GMT+05:30 Subject: OCR4wikisource To: "Discussion list on Indian language projects of Wikimedia." < wikimediaindi...@lists.wikimedia.org> Hi all, Released a program to link google OCR and books

Re: [Wikitech-l] Getting birthday from the sidebar of a wiki page and showing in the home page

2013-10-03 Thread Shrinivasan T
Thanks for the info friends. I want to get the date info from the "infobox". not from the sidebar, as I told in my initial mail. Now only I knew about the sidebar. https://www.mediawiki.org/wiki/Sidebar On Thu, Oct 3, 2013 at 10:02 PM, Bináris wrote: > 2013/10/3 John Vandenberg > > > > > An

Re: [Wikitech-l] Getting birthday from the sidebar of a wiki page and showing in the home page

2013-10-03 Thread Shrinivasan T
> Wikidata + JS to the rescue!?? Thanks for the reply. I am very new to the wikidata. Please explain little more on how to access the data in the sidebar to get details of the date using wikidata. -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazi

[Wikitech-l] Getting birthday from the sidebar of a wiki page and showing in the home page

2013-10-03 Thread Shrinivasan T
The side bar of any famous person in Tamil wikipedia has the birthday of the person. Example: https://ta.wikipedia.org/s/im6 https://en.wikipedia.org/wiki/Nagesh Is there any way to notify this in the front/home page of the Tamil wikipedia ? Just like a "Today in history" etc. Thanks. -- Reg

Re: [Wikitech-l] New committer

2011-12-15 Thread Shrinivasan T
welcome harry. thanks and wishes for your contributions. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] mediawiki-uploader

2011-12-15 Thread Shrinivasan T
thanks for the encouragement. On 16 Dec 2011 01:43, "Sumana Harihareswara" wrote: > On 12/15/2011 08:48 AM, Shrinivasan T wrote: > > Friends. > > > > Tamil Wikipedia announced a Media Contest to increase the commons > > media files like photos, audio and vide

[Wikitech-l] mediawiki-uploader

2011-12-15 Thread Shrinivasan T
Friends. Tamil Wikipedia announced a Media Contest to increase the commons media files like photos, audio and video in the wikipedia world. see the announcement here. http://ta.wikipedia.org/wiki/Contest/en To upload the photos there are two ways available so far. 1. The web based upload wizard