Exemplo n.º 1
0
def _fetch_tweets(since_id=1, page=1):
    log.debug("Fetching tweets... since id: %s, page: %s", (str(since_id), str(page)))
    tweets = utils.getjson(
            USER_TIMELINE_URL % (page, since_id),
            username=settings.TWITTER_USERNAME,
            password=settings.TWITTER_PASSWORD
        )
    return tweets
Exemplo n.º 2
0
def update():
    log.debug("Fetching delicious updates...")
    updates = utils.getjson(JSON_URL)
    _save_updates(updates)
Exemplo n.º 3
0
def update():
    log.debug("Fetching flickr photos...")
    json =  utils.getjson(JSON_URL)
    if json.has_key('photos') and json["photos"].has_key('photo'):
        photos = json["photos"]["photo"]
        _save_pics(photos)