Skip to content

Instantly share code, notes, and snippets.

View letitbevi's full-sized avatar

Joanne Tsui letitbevi

  • London, United Kingdom
View GitHub Profile
$ mkvirtualenv -p python2.7 py27
$ mkvirtualenv -p python3.3 py33
$ workon py33
$ pip install ipython
$ workon py27
$ pip install ipython
@letitbevi
letitbevi / request_theguardian.py
Created October 20, 2016 07:59
Use Python to Crawl the Content Data from The Guardian
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import json
import requests
def request_theguardian(params):
### theguardian endpoint URL