Skip to content

Instantly share code, notes, and snippets.

@alexlamazing
Created May 18, 2017 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexlamazing/3f43be2117ced151b27d66ee95d6c559 to your computer and use it in GitHub Desktop.
Save alexlamazing/3f43be2117ced151b27d66ee95d6c559 to your computer and use it in GitHub Desktop.
#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