Why urllib returns garbage from some wikipedia articles?

前端 未结 3 1912
刺人心
刺人心 2021-01-14 00:33
>>> import urllib2

>>> good_article = \'http://en.wikipedia.org/wiki/Wikipedia\'
>>> bad_article = \'http://en.wikipedia.org/wiki/India\'         


        
3条回答
  •  孤城傲影
    2021-01-14 00:39

    Do a "curl -i" for both the links. If its coming fine, there is no environment problem.

提交回复
热议问题