Python爬取网页内容

浅浅的花香味﹌ 2024-02-19 17:17 159阅读 0赞
  1. import urllib.request
  2. url = "https://blog.csdn.net/zhangphil"
  3. response = urllib.request.urlopen(url)
  4. content = response.read().decode('utf-8')
  5. print(content)

发表评论

表情:
评论列表 (有 0 条评论,159人围观)

还没有评论,来说两句吧...

相关阅读