1
yujnln Jul 16, 2012
可以。
>>> print len(content) 87031 |
2
bigdude OP @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 |
3
yujnln Jul 16, 2012
|
4
bigdude OP 抓狂·······
>>> a=urllib.urlopen('http://brand.tmall.com/azIndexInside.htm?firstLetter=A&prt=1342414752421&prc=5') >>> len(a.read()) 0 |
6
est Jul 16, 2012
@bigdude 不需要cookie也可以的
curl -vL "http://brand.tmall.com/azIndexInside.htm?firstLetter=A&prt=1342414752421&prc=5" |