Study Notes (03): 21 days to get a distributed Web crawler -urllib Python Library - Basic use

Learning immediately: https://edu.csdn.net/course/play/24756/280646?utm_source=blogtoedu

urllib library:

urlopen function:

url: url requests

data: request data, after setting makes it possible post request

Return Value: Returns a webpage

http.client.HTTPResponse object, which is a file handle to the object , can be used to read, read, readline, readlines, getcode

Released three original articles · won praise 0 · Views 33

Guess you like

Origin blog.csdn.net/weixin_45661655/article/details/104275859