起因是自己写的服务端爬取的数据源只有大陆可以访问,但是服务器在国,所以不得不在国外挂代理访问国内的数据源,所以单独写了个小脚本,获取网上可以使用的代理地址
import json
import time
from threading import Thread
import bs4
import requests
from constant import REQUESTS_HEADERS
class GetProxiesThread(Thread):
def __init__(self):
"""
:param func: 可调用的对象...