|
能详细讲讲么?我按列表选型查看时,翻到第二页 raw 信息是这样的:
POST http://www.dq123.com/price/getpricelistjson.php?t=1420693536544 HTTP/1.1
Host: www.dq123.com
Connection: keep-alive
Content-Length: 81
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://www.dq123.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://www.dq123.com/price/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: _pk_ref.1.e7c8=%5B%22%22%2C%22%22%2C1420693505%2C%22http%3A%2F%2Fjj.17p0.com%2Fjbd%2Flocation2.php%3Fgxsg_url%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%26rurl%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%22%5D; PHPSESSID=fa6260a145c7a04e9adecff6c7337175; _pk_id.1.e7c8=ab246e000995a5be.1420644852.2.1420693510.1420644860.; _pk_ses.1.e7c8=*
factoryid=&categoryid=&classid=&keywordstr=&modelstr=&pageindex=2&initpagesize=50
翻到第三页:
POST http://www.dq123.com/price/getpricelistjson.php?t=1420693652641 HTTP/1.1
Host: www.dq123.com
Connection: keep-alive
Content-Length: 81
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://www.dq123.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://www.dq123.com/price/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: _pk_ref.1.e7c8=%5B%22%22%2C%22%22%2C1420693505%2C%22http%3A%2F%2Fjj.17p0.com%2Fjbd%2Flocation2.php%3Fgxsg_url%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%26rurl%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%22%5D; PHPSESSID=fa6260a145c7a04e9adecff6c7337175; _pk_id.1.e7c8=ab246e000995a5be.1420644852.2.1420693510.1420644860.; _pk_ses.1.e7c8=*
factoryid=&categoryid=&classid=&keywordstr=&modelstr=&pageindex=3&initpagesize=50
再回到第二页:
POST http://www.dq123.com/price/getpricelistjson.php?t=1420693693733 HTTP/1.1
Host: www.dq123.com
Connection: keep-alive
Content-Length: 81
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://www.dq123.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://www.dq123.com/price/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: _pk_ref.1.e7c8=%5B%22%22%2C%22%22%2C1420693505%2C%22http%3A%2F%2Fjj.17p0.com%2Fjbd%2Flocation2.php%3Fgxsg_url%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%26rurl%3DaHR0cDovL3d3dy5kcTEyMy5jb20v%22%5D; PHPSESSID=fa6260a145c7a04e9adecff6c7337175; _pk_id.1.e7c8=ab246e000995a5be.1420644852.2.1420693510.1420644860.; _pk_ses.1.e7c8=*
factoryid=&categoryid=&classid=&keywordstr=&modelstr=&pageindex=2&initpagesize=50
其中
http://www.dq123.com/price/getpricelistjson.php?t=后面的数值找不到规律
我想下抓取该网页价格列表 中数据,这个网页翻页,浏览器中的网址是不变的。
|
|