-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIntroduction.py
More file actions
41 lines (28 loc) · 723 Bytes
/
Copy pathIntroduction.py
File metadata and controls
41 lines (28 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# installation
#
# conda
#
# Conceptual overview
#
# Requests library: [Requests: HTTP for Humans — Requests 2.3.0 documentation](http://docs.python-requests.org/en/latest/)
# <markdowncell>
# # What APIs to cover?
#
# * geocoder.us -- simple to understand and use?
# <headingcell level=1>
# Geocoder.us
# <markdowncell>
# http://geocoder.us/
#
# * free for non-commercial use
#
# http://rpc.geocoder.us/service/csv?address=1600+Pennsylvania+Ave,+Washington+DC
# <codecell>
url = "http://rpc.geocoder.us/service/csv?address=1600+Pennsylvania+Ave,+Washington+DC"
# <codecell>
import requests
r = requests.get(url).content
r.split(",")