使用Scylla获取免费代理IP

简介

  • 自动化的代理 IP 爬取与验证
  • 易用的 JSON API

安装

pip直接安装

pip install scylla
scylla --help
scylla # 运行爬虫和 Web 服务器

查看代理IP信息

这里写图片描述

Demo

curl

$ curl http://ip.cn -x http://127.0.0.1:8081                                      [3:35:45]
当前 IP:94.16.122.115 来自:德国
$ curl http://ip.cn -x http://127.0.0.1:8081                                      [3:35:56]
当前 IP:114.215.95.188 来自:山东省青岛市 阿里云
$ curl http://ip.cn -x http://127.0.0.1:8081                                      [3:36:04]
当前 IP:217.61.106.183 来自:德国
$ curl http://ip.cn                                                               [3:36:06]
当前 IP:117.150.xxx.xx 来自:湖北省XX市 移动

requests

requests.get('http://ip.cn', proxies={'http': 'http://127.0.0.1:8081'})

API

http://localhost:8899/api/v1/proxies

参考

https://scylla.wildcat.io/zh/latest/

猜你喜欢

转载自blog.csdn.net/caiqiiqi/article/details/80879450