本帖最后由 codegay 于 2018-6-28 22:01 编辑
- # -*- coding: utf-8 -*-
- """
- Created on Thu Jun 28 14:46:56 2018
- @author: codegay
- python3 & 编辑器 == spyder3
- """
-
- import requests
-
- session = requests.Session()
-
- url = "http://www.yngp.com/bulletin.do?method=moreListQuery¤t=1&rowCount=10000&searchPhrase=&sign=0&query_bulletintitle=造价&query_sign=1&flag=0&listSign=0&districtCode=all"
-
- httphead = {
- 'x-requested-with': 'XMLHttpRequest'
- }
-
- res = session.get(url, headers=httphead)
-
- print(res.json())
复制代码
|