User Agent is called User Agent in Chinese, or UA for short. It is a special string header that enables the server to identify the operating system and version, CPU type, browser and version, browser rendering engine, and browser language used by the client., browser plug-ins, etc.
Western proxy
Fast proxy
What is high anonymous, anonymous and transparent proxy?What's the difference between them?
1. Using a transparent proxy, the other server can know that you are using a proxy, and also know your real IP.
2. Using an anonymous proxy, the other server can know that you use a proxy, but not your real IP.
3.
4. Use a highly anonymous proxy, the other server does not know that you are using a proxy, let alone your real IP.
coding platform
cloud coding platform
super
The website returns js data, not the real data of the webpage
Selenium drives the real browser to send requests
Analyze js code
urllib.request.urlopen()
Simulate a browser to send a request to the serverresponse
The data returned by the serverresponse
The data type is HttpResponse
byte‐‐>string
decode
string‐‐>bytes
encode encoderead()
read binary extension in byte form: rede(5) returns the first few bytesreadline()
read a linereadlines()
read line by line until the endgetcode()
get the status codegeturl()
get url
getheaders()
get headers
urllib.request.urlretrieve()
request web page
request image
request video
Syntax: request = urllib.request.Request()