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
stack_exchange_api = 'https://api.stackexchange.com/2.1' | |
request_url = "{0}/users/{1}/associated".format( | |
stack_exchange_api, usernames['stack_exchange']) | |
api_request = urllib2.Request( | |
request_url, | |
headers={"Accept": "application/json"}) | |
api_z_response = urllib2.urlopen(api_request) | |
from zlib import decompress, MAX_WBITS | |
api_response = decompress(api_z_response.read(), 16 + MAX_WBITS) | |
se_accounts_json = json.loads(api_response) |
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
""" Run like: $ python coder-shell.py | |
First you need to: $ pip install coderwall requests fabulous | |
""" | |
from coderwall import CoderWall | |
import fabulous.image | |
import fabulous.text | |
import os | |
import requests |