GithubHelp home page GithubHelp logo

gae_twitter's Introduction

GAE Twitter is a project to provide bare-bones Twitter integration for Google
App Engine that makes no assumptions, and is easy to integrate with existing
apps.


= Status =

Right now GAE Twitter only supports reading (i.e. GET) without authentication.
If you want to POST data or have to authenticate, feel free to submit a patch
or file a specific issue.


= Setup =

In your pre-existing application add this project as a submodule, like so:

    git submodule add git://github.com/bdoms/gae_twitter.git gae_twitter

Next, you need to initialize and update the submodule to get the data:

    git submodule init
    git submodule update

And then just add this to your app.yaml 'handlers' section:

    - url: /twitter.*
      script: gae_twitter/twitter.py
      login: admin

Now you just need to configure it by changing which user to follow, and by
setting up the cron job. You'll need to create or modify your project's
cron.yaml file to do this. The included example job looks like this:

    - description: check for updates to a user's twitter status
      url: /twitter?screen_name=twitterapi
      schedule: every 15 minutes

You can easily modify the rate at which it checks, and the screen name it uses.


= Use =

GAE Twitter just updates a single database entry with the most recent post from
the user specified in the config.py file. To use this data, grab it from the
model:

    from gae_twitter import model
    post = model.getPost()

The post object only has two properties for you to worry about:

    post.body # the actual content of the post
    post.timestamp # when it happened (Python datetime object in UTC)

gae_twitter's People

Contributors

bdoms avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gae_twitter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.