
Teach you to use wget to hang proxy to download files.
The old iron engaged in the network crawler should understand that the direct barefoot download is easy to be blocked IP. today nagging how to use wget this command line tool to hang the proxy, focusing on our own recommended!ipipgoAgent Service. The operation is easier than cooking instant noodles, follow the steps right.
Make sure wget is installed first.
Try opening a terminal and hitting this command:
wget --version
If the version number pops up, it's already installed, but if it says "command not found", you have to install a wget first. If it says "command not found", you have to install wget first and use this command to install it (for Debian/Ubuntu):
sudo apt-get install wget
Temporary Hanging Agent Download
You can set it up temporarily like this when you're in a hurry:
wget -e use_proxy=yes -e http_proxy=account:password@proxy ip:port URL to be downloaded
As a chestnut use ipipgo's proxy:
wget -e use_proxy=yes -e http_proxy=user123:pass456@45.76.89.12:8080 https://example.com/file.zip
Long-term configuration of proxy settings
If you don't like the hassle of typing commands every time, it's less time consuming to just change the configuration file. Find the.wgetrcfile (usually in the user's home directory), add these lines:
use_proxy = on
http_proxy = proxy ip:port
proxy_user = account
proxy_password = password
Just fill in the proxy information with ipipgo, pay attention to the file permissions should be set up, do not let the password leaked.
Verify that the proxy is in effect
Test if the proxy is working before downloading, use this command:
wget -q -O - checkip.ipipgo.com
This address is specifically used by ipipgo to check the current IP, if the returned IP is the same as the proxy IP you set, it means that the configuration is successful.
Reminder of common pitfalls
| problematic phenomenon | method settle an issue |
|---|---|
| Prompt 407 Authentication Failure | Check if the account password contains special symbols, it is recommended to use URL encoding process |
| Extremely slow download speed | Change ipipgo's other regional nodes, don't stick to one IP |
| Frequent disconnections | Add the -proxy-retry parameter to the wget command to retry automatically |
QA time
Q: How do I know if the proxy IP is still available?
A: Use curl to test it first:curl -x http://代理IP:端口 --connect-timeout 5 checkip.ipipgo.com
Q: What if I need to use more than one agent at the same time?
A: It is recommended to use ipipgo's API to dynamically obtain a pool of proxies, and write a shell script to rotate them around
Q:What should I do if the download of large files is always interrupted?
A: Plus-cParameter support breakpoint transfer, with ipipgo's long-lasting static proxy effect is even better!
Lastly, I'd like to give you a heads up.ipipgoThe three main advantages of the
1. Exclusive IP pool without crash
2. 200+ city nodes nationwide
3. Provide ready-to-use configuration tutorials
If you still can't get it right, go directly to the ipipgo website to find online customer service, hand in hand to teach you to match. Remember not to use free proxies, those are ten thousand people riding the IP, minutes to be blocked without negotiation.

