Emijrp
Joined 5 February 2014
User page Discussion
Welcome to my user page! Here you can see all my tools available in Wikimedia Labs with a brief description about them. I like to develop statistics/visualization tools and recommendation systems, both to analyse and help others to find tasks to do.
I mostly use Python, a bit of PHP, MySQL, JavaScript, HTML+CSS and publish the code with open-source licenses. If you find any bug or want to send me a suggestion, please use the talk page. I have a user page in English Wikipedia too.
My tools
ToolCodeDescriptionScreenshot
commons-coverageGitHubA map for Wikimedia Commons coverage.
currenteventsGitHubAnalysis of current events articles in several Wikipedias.-
imagesforbioGitHubRecommendation tool of images for biographies. Inactive.-
wikiradioGitHubA wikiradio for audio files from Wikimedia Commons.
wikitweetsGitHubTwitter bots about Wikipedia, Wikimedia Commons and other wikis.-
wlm-mapsGitHubA map for the Wiki Loves Monuments photograph contest.
wlm-statsGitHubStatistics and graphs about the Wiki Loves Monuments photograph contest. Metadata files available, download and create your own statistics!
wmchartsGitHubA collection of charts about Wikimedia projects, including activity on recent changes, new pages, deletions, blocks, protections, file uploads, reverts and more.
wmcounterGitHubA near real-time counter for all Wikimedia projects together. Pretty amazing to see, perfect for background in wiki conferences. The 1 billionth edit took place on April 16, 2010.
Stuff to do
Write some tutorials:
Interesting projects I would like to help to:
commons:Commons:British Library/Mechanical Curator collection
Help pages
Basic commands
CommandExampleDescription
becomebecome wmcounterLogin as tool user (for exit write 'logout' or press Ctrl+D)
chmodchmod -R g+w /data/project/alicetoolsMake directory writable for group
jsubjsub -N enwiki1 -mem 1G /usr/bin/python /data/project/mytool/script.py enwiki-20140509-pages-meta-history1.xml.7zSubmit a job named enwiki1 to a queue for running the script.py over a chunk of an English Wikipedia dump.
  • qstat: show status of jobs
  • qacct -j jobname: show info about job
  • qdel jobname: abort the job
  • qdel -u tools.toolname: abort all the jobs of this tool
  • qmod -sj 1234: suspend job
  • qmod -usj 1234: resume job
jsub
(pywikibot)
jsub -N bot22 -mem 1G bot.shSubmit a pywikibot job to queue.
pippip install mediawiki-utilitiesInstall the Python module mediawiki-utilities
scpscp wmcounter.py yourusername@tools-login.wmflabs.org:/data/project/wmcounterUpload a single file from your local to the target machine
scp -r lib/ yourusername@tools-login.wmflabs.org:/data/project/wmchartsUpload a directory recursively
sqlsql enwikiEnter in MariaDB console (#Database Servers)
sql meta
SELECT * FROM wiki WHERE 1;
Display all available databases. You can filter by language (lang='xx'), family (family='wikibooks'), etc.
sql local
use s51138__heritage_p;
Enter in erfgoed database
sshssh -A yourusername@tools-login.wmflabs.orgConnect to tools-login.wmflabs.org. Recommended tools-dev.wmflabs.org
mosh -a yourusername@tools-login.wmflabs.orgRecommended for connections from Europe when lag appears
virtualenvvirtualenv -p python3 nameCreate a virtual environment with Python 3 with the name name
cd name;source bin/activateMove inside the virtualenv name and launch it
deactivateExit of virtualenv
webservicewebservice startTool is reachable throught public URL (webservice stop to stop)
Processing dumps
Babel user information
es-N
Esta persona tiene una comprensiĆ³n nativa del espaƱol.
en-3
This user has advanced knowledge of English.
Framework: mediawiki-utilities
Install: pip install mediawiki-utilities
Other stuff
External links
Last edited on 25 February 2019, at 19:27
Wikitech
Content is available under CC BY-SA 3.0 unless otherwise noted.
Privacy policy
Terms of Use
Desktop
HomeRandomLog inSettingsDonateAbout WikitechDisclaimers
WatchHistoryContributionsEdit User groups Logs Page information Permanent link What links here