(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env python | |
import sys, os, time | |
# add the path for virtual env for running via cron | |
os.chdir(os.path.dirname(os.path.realpath(__file__))) | |
sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/lib/python3.4/site-packages/') | |
import tweepy | |
#visit http://dev.twitter.com to create an application and get your keys |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
result.entities.urls[0].expanded_urlfetch = function(query) { | |
var script_tag = document.createElement("script"); | |
script_tag.id = "fetcher"; | |
script_tag.src = "https://search.twitter.com/search.json"+query+"&callback=parse"; | |
document.body.appendChild(script_tag); | |
} | |
parse = function(data) { | |
document.body.removeChild(document.getElementById("fetcher")); | |
if( data && data.results ) { |