Skip to content

Various scripts I've written to do things with Twitter.

License

Notifications You must be signed in to change notification settings

alloy-d/twitter-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a collection of scripts I've written to do cool and unusual (well, I think so, anyway) things with Twitter.

tweet_my_dot_plan.py

A Python script to tweet the contents of your .plan file whenever you update it. It uses the credentials found in the file credentials.py (of which a sample is provided), currently expected to be in the same directory, for the Twitter account.

Its requirements are the git version of pyinotify, found here, and python-twitter, available here.

To use it, simply run it (preferably in the background, since it doesn't daemonize itself yet): python tweet_my_dot_plan.py &

git-hooks

Several Python scripts for updating Twitter with git commits. There is a post-commit script, which posts each commit to Twitter as it happens, and a post-receive script, which posts commits to Twitter after receiving them (via a push, for example).

Their requirements are GitPython, found here, and python-twitter, which you can download here.

Sample hooks are provided which demonstrate how to use the scripts; they and the Python files should be placed in the .git/hooks directory of your repository.

hg-hooks

Like git-hooks, but for Mercurial. (Minus a 'commit' hook--'incoming' is Mercurial's equivalent to Git's 'post-receive', though.)

A sample .hg/hgrc is included here demonstrating how to use the hook. hg_twitter_hooks.py must be somewhere in your PYTHONPATH.

Copyright

These scripts are copyright (C) 2009 Adam Lloyd.

They are free software: you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

They are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

For the full text of the GNU General Public License, see the COPYING file.

About

Various scripts I've written to do things with Twitter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages