This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WARNING: THIS SCRIPT VIOLATES TWITTER'S TOS, USE AT YOUR OWN RISK | |
import tweepy | |
from config import * | |
import urllib2 | |
import pprint | |
import requests | |
requests.packages.urllib3.disable_warnings() | |
auth = tweepy.OAuthHandler(ckey, csecret) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twython import Twython | |
from config import * | |
import collections | |
import re | |
import requests | |
requests.packages.urllib3.disable_warnings() | |
APP_KEY = ckey | |
APP_SECRET = csecret | |
OAUTH_TOKEN = atoken |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tweepy | |
from config import * | |
import requests | |
requests.packages.urllib3.disable_warnings() | |
auth = tweepy.OAuthHandler(ckey, csecret) | |
twitter = tweepy.API(auth) | |
query = str(raw_input("what's yr joke? ")) | |
results = tweepy.Cursor(twitter.search, q=query).items(101) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
import tweepy | |
from config import * | |
import requests | |
requests.packages.urllib3.disable_warnings() | |
OAUTH_KEYS = (ckey, csecret, atoken, asecret) | |
auth = tweepy.OAuthHandler(ckey, csecret) | |
twitter = tweepy.API(auth) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from datetime import datetime | |
from datetime import timedelta | |
from pprint import pprint | |
import tweepy | |
from config import * | |
requests.packages.urllib3.disable_warnings() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from instagram.client import InstagramAPI | |
import httplib2 | |
import simplejson | |
import six | |
api = InstagramAPI( | |
client_id='adeb7a8be4d0463b8bae5e12df37145e', | |
client_secret='428e9e381d3e4a9298a307fd322aaf24', | |
access_token='181028960.adeb7a8.43b0ef71f8df44cda7e75c6e10740672' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib2 import urlopen | |
import datetime | |
from instagram.client import InstagramAPI | |
import six | |
api = InstagramAPI( | |
client_id='adeb7a8be4d0463b8bae5e12df37145e', | |
client_secret='428e9e381d3e4a9298a307fd322aaf24', | |
access_token='181028960.adeb7a8.43b0ef71f8df44cda7e75c6e10740672' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from instagram.client import InstagramAPI | |
import httplib2 | |
import simplejson | |
import six | |
api = InstagramAPI( | |
client_id='adeb7a8be4d0463b8bae5e12df37145e', | |
client_secret='428e9e381d3e4a9298a307fd322aaf24', | |
access_token='181028960.adeb7a8.43b0ef71f8df44cda7e75c6e10740672' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
youtube-dl -o "_%(id)s.%(ext)s" $1 | |
infile=$(ls | head -n1) | |
palette="/tmp/palette.png" | |
filters="fps=12,scale=500:-1:flags=lanczos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
convert *.png -morph 5 anim.gif | |
gifsicle -b anim.gif -k 256 -d500 "#0" -d10 "#1-5" -d500 "#6" -d10 "#5" "#4" "#3" "#2" "#1" --loopcount=0 |
OlderNewer