Skip to content
This repository

Scripts to tweet DYK hooks.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dyk
Octocat-spinner-32 .gitignore
Octocat-spinner-32 DYKHookScrapper.py
Octocat-spinner-32 DYKList.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 WikiDYKTweeter.py
Octocat-spinner-32 config.ini.sample
Octocat-spinner-32 source.txt
README.txt
WikipediaDYKTweeter

DYKHookScrapper.py:- This script aims to populate DYK hooks by scrapping them from the talk page of DYK articles outputs to a csv file.

WikiDYKTweeter.py:-  This script reads from Google docs spreadsheet where Tweet queue is maintained, creates short  URLs using bit.ly and posts the tweet to twitter

Prerequisites:
1. Python 2.6 with mwclient ( http://mwclient.sourceforge.net ) 
2. source.txt containing list of DYK articles which can be obtained by CatScan like tools. ( http://toolserver.org/~magnus/catscan_rewrite.php )
3. Python modules of tweepy,bitlyapi,GDataSpreadsheet API, ElementTree

Usage:
1. $python DYKHookScrapper.py /path/to/sourceList.txt /path/to/OutputFile.txt
2. Upload the Outputfile into Google Docs maintaining the same format as in http://bit.ly/WikiDYKTweeterFormat
3. Modify config.ini with required details
4. $python WikiDYKTweeter.py

TODO:
1. Make it more configurable.
	a. Spreadsheet ID, Worksheet ID must be written to config file by seperate script
	b. Column definitions should be customizable and be configurable
2. Enable logging
3. Make the DYKHookScrapper more comprehensive covering all present patterns
4. Support Identi.ca
Something went wrong with that request. Please try again.