Category: python3

Python3 crawler (1) crawl the html of the web page 0

Python3 crawler (1) crawl the html of the web page

Hits: 0Because the code is only a few lines, you can paste the code first: import urllib.request url = r'http://douban.com' res = urllib.request.urlopen (url) html = res.read().decode('utf-8') print(html) The first line, import the request...