linux抓取网页curl
On Linux, how to download a webpage as a mobile browser?
You can change the agent of curl
to be a mobile browser’s and the remote webserver may be consider the request from a mobile browser:
您可以将curl
代理更改为移动浏览器的代理,并且可以将远程Web服务器视为来自移动浏览器的请求:
curl
-A "Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) CriOS/28.0.1500.12 Mobile/10B329 Safari/8536.25"
http://www.example.com/
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-fetch-a-webpage-as-a-mobile-browser-with-curl-on-linux/
linux抓取网页curl