This file contains hidden or 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
$ mkvirtualenv -p python2.7 py27 | |
$ mkvirtualenv -p python3.3 py33 | |
$ workon py33 | |
$ pip install ipython | |
$ workon py27 | |
$ pip install ipython |
This file contains hidden or 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/python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import json | |
import requests | |
def request_theguardian(params): | |
### theguardian endpoint URL |