Skip to content
forked from hatnote/hashtags

Caching hashtags in Wikipedia edit summaries

Notifications You must be signed in to change notification settings

intracer/hashtags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia Hashtags

A set of scripts to cache Wikipedia Hashtag.

This script connects to the Wikipedia database replica on Wikimedia Tool Labs, searches for hashtags, and then stores it in another database with nice indexes for searching. See hashtag search. On Tool Labs, the database is kept up-to-date on 10-20 minute interval scheduled via crontab.

Usage

$ python update.py --lang <two letter language code>

Options:

$ python update.py --help

  -h, --help     show this help message and exit
  --lang LANG
  --hours HOURS
  --debug

TODOs

  • Add support for other Wikimedia projects
  • Add additional lanugages

Notes

Connect to the hashtag database on Tool Labs:

mysql --defaults-file=${HOME}/replica.my.cnf -h s1.labsdb s52467__hashtags

About

Caching hashtags in Wikipedia edit summaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%