Created
May 18, 2017 09:50
-
-
Save alexlamazing/3f43be2117ced151b27d66ee95d6c559 to your computer and use it in GitHub Desktop.
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
#import urllib2 library 用作 query 網頁 | |
import urllib2 | |
#指定需要提取資料的頁面 | |
locatefamily = "http://www.locatefamily.com/Street-Lists/Hong-Kong/index-1.html" | |
#用 urllib2 提取有關頁面的 html | |
page = urllib2.urlopen(locatefamily) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment