python爬虫—proxy的使用
使用代理ip,使用proxy来设置代理服务器,一段时间换一个Ip,HTTPHandler
#使用代理ip,使用proxy来设置代理服务器,一段时间换一个Ip
from urllib.request import Request
from urllib.request import build_opener
from fake_useragent import UserAgent
from urllib.request import HTTPHandler
from urllib.request import ProxyHandler
url =