Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A script to grab signature data from a WhiteHouse.gov petition, store entries in a database, and send out a tweet as new folks sign.

branch: locations

This branch is 5 commits ahead and 3 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 completenessChecker.py
Octocat-spinner-32 config.py.bp
Octocat-spinner-32 db_migration_1.py
Octocat-spinner-32 db_migration_2.py
Octocat-spinner-32 dbstart.py
Octocat-spinner-32 geocode.py
Octocat-spinner-32 parser.py
Octocat-spinner-32 signature_tweeter.py
Octocat-spinner-32 tweeter.py
Octocat-spinner-32 twitter_test.py
Octocat-spinner-32 update_locations.py
README.md

Just a first trial.

Instructions

  1. Go to https://dev.twitter.com to make an app. Be sure to generate your oauth token after you change your app's permissions to read & write

  2. fill in details in config.py.bp and rename to config.py

  3. initialize the database

    $ ./dbstart.py
    
  4. Then run signature_tweeter.py to see it in action

    $ ./signature_tweeter.py
    
  5. Check out the resulting database by:

    $ sqlite3 signatures.db
    

Pretty nifty!

Checkout:

Something went wrong with that request. Please try again.