Get webpage contents with Python?

前端 未结 8 1528
情话喂你
情话喂你 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:09

    Also you can use faster_than_requests package. That's very fast and simple:

    import faster_than_requests as r
    content = r.get2str("http://test.com/")
    

    Look at this comparison:

提交回复
热议问题