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 tianon/centos-null:5.9 | |
RUN rpm -i http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
RUN yum -y update | |
RUN yum -y install gcc git curl make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl openssl-devel | |
RUN useradd -m python_user | |
RUN ln -s /proc/self/fd /dev/fd |
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 flask import Flask, request, redirect, url_for | |
from rauth.service import OAuth1Service | |
twitter = OAuth1Service( | |
name='twitter', | |
consumer_key='TWITTER KEY', | |
consumer_secret='TWITTER SECRET', | |
request_token_url = 'https://api.twitter.com/oauth/request_token', | |
access_token_url = 'https://api.twitter.com/oauth/access_token', | |
authorize_url = 'https://api.twitter.com/oauth/authorize', |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
from argparse import ArgumentParser | |
from xml.dom import minidom | |
try: | |
from urllib.request import urlopen | |
from urllib.parse import urlencode | |
except ImportError: |
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 flask import Flask, request, redirect, url_for | |
from rauth.service import OAuth1Service, OAuth2Service | |
github = OAuth2Service( | |
name='github', | |
consumer_key='GITHUB_CONSUMER_KEY', | |
consumer_secret='GITHUB_CONSUMER_SECRET', | |
access_token_url='https://github.com/login/oauth/access_token', | |
authorize_url='https://github.com/login/oauth/authorize', | |
) |