from get_ip import *
response=requests.get(url=url,headers=headers,cookies=self.cookies,proxies=get_ip_content())
get_ip
-sharp!/usr/bin env python3
import requests
import re
import random
def get_ip_content():
response=requests.get("http://www.httpipqq.com/api.asp?sl=10&noinfo=true&ddbh=189483614300055720")
ip_list=re.findall("(\d+\.+\d+\.+\d+\.\d+:\d+)", response.text, re.S)
PROXIES = {
"http": "http://"+ip_list[random.randint(0,len(ip_list))],
"https": "http://"+ip_list[random.randint(0,len(ip_list))],
}
return PROXIES
write an error like this?
Traceback (most recent call last):
File "wechat_official_accounts.py", line 85, in < module >
wechat_offical_account().get_offical_account()
File "wechat_official_accounts.py", line 36, in get_offical_account
response=requests.get(url=url,headers=headers,cookies=self.cookies,proxies=get_ip_content())
NameError: name "get_ip_content" is not defined
Why do you call me get_ip_content