Skip to content

Instantly share code, notes, and snippets.

@coeric
Created August 7, 2018 14:45
Show Gist options
  • Save coeric/d69afca69f8105512f233d237fc88897 to your computer and use it in GitHub Desktop.
Save coeric/d69afca69f8105512f233d237fc88897 to your computer and use it in GitHub Desktop.
pxmart
#-*- coding:utf-8 -*-
#!/usr/bin/env python
import requests
import json
url="http://www.pxmart.com.tw/px/store1?cityid=&cityzoneid=&cityroadid=&name_short="
res=requests.get(url)
data=json.loads(res.content)
for row in data:
# print row
name=row['name_short']
address=row['address']
tel=row['tel_zno']+row['tel_no']
fax=row['fax_no']
x=row['mapx']
y=row['mapy']
print name,address,tel,fax,x,y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment