Get webpage contents with Python?

前端 未结 8 1557
情话喂你
情话喂你 2020-12-04 15:22

I\'m using Python 3.1, if that helps.

Anyways, I\'m trying to get the contents of this webpage. I Googled for a little bit and tried different things, but they didn\

8条回答
  •  情话喂你
    2020-12-04 16:08

    If you ask me. try this one

    import urllib2
    resp = urllib2.urlopen('http://hiscore.runescape.com/index_lite.ws?player=zezima')
    

    and read the normal way ie

    page = resp.read()
    

    Good luck though

提交回复
热议问题