=1ts=0ys=0cs=0lb=1sb=0pb=4mr=1 " data = Urllib.request.urlopen (URL)." Read () . Decode ("Utf-8") data2 = json.loads (data) # Restores the string to its original data type print (data2[' data '][0]) IP = str (data2[') Data '][0][' IP ']) Dkou = str (data2[' data '][0][' Port ') zh_ip = IP + ': ' + Dkou print (zh_ip) proxy = Urllib.request.ProxyHandler ({"https": Zh_ip}) # format IP, note that the first parameter, the request target may be HTTP or HTTPS, corresponding s
Are you curious about the user-agent that identifies the browser identity, and why each browser has the Mozilla word?
mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/27.0.1453.94 safari/537.36
mozilla/5.0 (Linux; U Android 4.1.2; ZH-TW; gt-i9300 build/jzo54k) applewebkit/534.30 (khtml, like Gecko) version/4.0 Mobile safari/534.30
mozilla/5.0 (Windows NT 6.1
/5.0 (Windows NT 10.0; WOW64; rv:48.0) gecko/20100101 firefox/48.0 Tanteng "127.0.0.1––[10/oct/2016:02:43:23 +0000] "Get/hello http/1.1"-"curl/7.35.0"
Firefox plugin: User Agent switcher
This plugin can manage and switch different user
Modify the User-Agent of the browser in php to disguise your browser and operating system. The method to get HTTP_USER_AGENT is simple, such as the php code: Copy the code as follows :? Phpprint_r ($ _ SERVER );? Copy the code as follows :? Phpprint_r ($ _ SERVER [HTTP_USER_AGENT the method for obtaining HTTP_USER_AGENT is very simple, such as php code:
The code is as follows:
?>
The code is as foll
The way to get Http_user_agent is simple, like the PHP code:
Copy the Code code as follows:
?>
Copy the Code code as follows:
?>
Both of these can be user-agents and IP information, preferably with regular expressions, filtering out information.
———— –user-agents List ————-
Internet Explorer 6
Internet Explorer 7
Internet Explorer 8
Firefox
Chrome
Safar
The way to get Http_user_agent is simple, like the PHP code:
Copy Code code as follows:
?>
Copy Code code as follows:
?>
Both of these can get user-agents and IP information, preferably with regular expressions, filtering out the information.
———— –user-agents List ————-
Internet Explorer 6
Internet Explorer 7
Internet Explorer 8
The user agent is used to indicate the identity of the browsing user, so that web developers can know the information of the access terminal. Send different display content based on different terminals. For example, the desktop and mobile versions send different webpage content to adapt to the differences between the screen and the operating system (that is, the
First, why to set up the user AgentSome sites do not like to be accessed by the crawler, so will detect the connection object, if it is a crawler, that is, non-human click access, it will not let you continue to access, so in order to allow the program to run properly, you need to hide their own crawler identity. At this point, we can set up the user agent to ach
;en-us) gecko/20081202 Firefox (DEBIAN-2.0.0.19-0ETCH1)
mozilla/5.0 Browser flag: Includes app name Mozilla and version number 5.0;
Compatible browser-compatible flag: Indicates support for major feature sets
U encryption flag: This field is gradually canceled (n means no security encryption, I table weakness security encryption, u means strong security encryption)
Linux i686 operating system flag: Linux
En-US language mark: E
Are you curious about the User-Agent that identifies the browser? Why does each browser contain Mozilla?
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36Mozilla/5.0 (Linux; U; Android 4.1.2; zh-tw; GT-I9300 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/2010010
Are you curious about the User-Agent that identifies the browser? Why does each browser contain Mozilla? View Source print?
1
Mozilla/5.0 (Windows NT 6.1; wow64) applewebkit/537.36 (khtml, like gecko) Chrome/27.0.1453.94 Safari/537.36
2
Mozilla/5.0 (Linux; U; Android 4.1.2; ZH-tw; GT-I9300 build/jzo54k) applewebkit/534.30 (khtml, like gecko) version/4.0 mobile saf
international standard format, long and difficult to remember. Introduce a more concise way to modify Chrome's user agent today to easily experience a mobile network.
The user agent string that simulates chrome masquerading as an ipad:
--user-
User-agent Summary of Mobile browserThe more concise way to modify Chrome's user Agent before, the easy way to experience the mobile version of the network is just for Chrome, Chrome is not just a simple browsing interface, the corresponding details are designed to be concise. But if you want to emulate a mobile device
Are you curious about the user-agent that identifies the browser identity, and why each browser has the Mozilla word?
1
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36
2
Mozilla/5.0 (Linux; U; Android 4.1.2; zh-tw; GT-I9300 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.3
Firefox, and called itself "mozilla/5.0 (Windows; U Windows NT 5.1; Sv-se; rv:1.7.5) gecko/20041108 firefox/1.0 ". Firefox performance is excellent, Gecko also began to Gongchenglvede, other new browsers use its code, and they call themselves "mozilla/5.0 (Macintosh; U PPC Mac OS X mach-o; En-us; rv:1.7.2) gecko/20040825 camino/0.8.1 ", and" mozilla/5.0 (Windows
neural features, and forked the project, and called it WebKit, but wanted pages written for khtml, And so safari called itselfMozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) applewebkit/85.7 (khtml, like gecko) Safari/85.5, And it got worse.
And Microsoft feared Firefox greatly, and Internet Explorer returned, and called itselfMozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)And it rendered good code, but only if webmasters commanded it to do so.
An
Wen/Binghaibin
Original:
The term User agent and the lack of understanding what a user agent is can also be a problem.Normally, the user agent is a browser like Microsoft Internet Explorer (MSIE), Netscape,Mozilla (Moz),
The user agent string userAgent can implement four identification functions: String useragent
Definition
User proxy string: navigator. userAgent
The HTTP specification clearly stipulates that the browser should send a brief user proxy string, specifying the browser name and version number. But in reality it is not that
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.