Skip to content

Python+urllib2实时动态获取免费代理IP池工具包

Notifications You must be signed in to change notification settings

defland/FreeIPAgentPool.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

FreeIPAgentPool.py

Python + urllib2 + re 实时动态获取免费代理IP池工具包。之前使用的购买付费代理IP成本比较高,干脆写一个获取免费IP的库。原理就是写多个爬虫,执行脚本时候,爬取免费ip地址,验证后返回可以使用的list。

爬取的免费ip地址来源

环境和使用的库

使用方法

import FreeIPAgentPool as ipool  

ipool_obj = ipool.IpSpiders()
free_list = ipool_obj.get_ip() # 返回当前可用的免费IP list
# print free_list

效果截图

9fLZCR.md.png

About

Python+urllib2实时动态获取免费代理IP池工具包

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages