各位试试这个 curl "http://brand.tmall.com/azIndexInside.htm?firstLetter=A&prt=1342414752421&prc=5" 能否取到内容。
初步研究貌似跟referer、useragent等无关。
初步研究貌似跟referer、useragent等无关。
|
yujnlnJul 16, 2012
1
可以。
>>> print len(content) 87031 |
|
2
@yujnln 你用的python?我用urllib2老是告诉我
urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Temporarily |
|
yujnlnJul 16, 2012
3
|
|
4
抓狂·······
>>> a=urllib.urlopen('http://brand.tmall.com/azIndexInside.htm?firstLetter=A&prt=1342414752421&prc=5') >>> len(a.read()) 0 |
|
estJul 16, 2012
6
@bigdude 不需要cookie也可以的
curl -vL "http://brand.tmall.com/azIndexInside.htm?firstLetter=A&prt=1342414752421&prc=5" |