wanzixin / SinaWeibo-LocationSignIn-spider

以城市为单位爬取新浪微博移动端poi与poi下的微博信息
23 stars 3 forks source link

项目咨询 #8

Open huangyezuoye opened 1 year ago

huangyezuoye commented 1 year ago

尊敬的开发者,您好! 我最近正在follow你的项目以期分析地点数据,但在运行中有以下错误:

  1. 在buildip.py中函数get_proxy里的 res = requests.get(url, proxies=proxy_ip, headers={'User-Agent': UserAgent(use_cache_server=False).random}) 报错TypeError: init() got an unexpected keyword argument 'use_cache_server',将这个意外实参移除之后又继续出现错误,同样是该句报错。
  2. res = requests.get(url, proxies=proxy_ip, headers={'User-Agent': UserAgent().random}) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)) 希望您有空帮处理或者更新下代码,十分感谢!