Giter Site home page Giter Site logo

spideripupdater's Introduction

SpiderIPUpdater

一款优选IP工具,集爬虫、CF解析、tg通知一条龙,可以部署在vps上定时优选IP

345673.py的IP库来源于345673.xyz

ipdb.py的IP库来源于ipdb.api.030101.xyz

使用教程

0.下载脚本

git clone https://github.com/sergioperezcheco/SpiderIPUpdater.git
cd SpiderIPUpdater

1.安装requests与bs4

pip install requests beautifulsoup4

pip3 install requests beautifulsoup4

2.将代码中的下列信息换成自己的

# Telegram 机器人 API 配置
telegram_api_token = 'your_api_token'
telegram_chat_id = 'your_chat_id'  # 用你的Chat ID,不是机器人的Chat ID

# Cloudflare 信息
api_key = "your_api_key"
email = "your_email"
zone_id = "your_zone_id"
domain = "your_domain"  # 确保这是完整的域名(如cf.111111.xyz)
ports = [80,443]  # 添加端口变量,如 ports = [80,443] 代表80和443都通,必须使用英文逗号,在部分脚本中有该变量

3.运行脚本

python3 345673.py

python3 ipdb.py

定时任务(推荐)

1.打卡crontab编辑器

crontab -e

2.添加定时任务

0 */2 * * * /usr/bin/python3 /SpiderIPUpdater/345673.py
# 0:每个小时的第0分钟,即整点时刻。
# */2:每两小时执行一次。
# *:分别代表每一天、每一个月以及每一个星期。
# /usr/bin/python3:Python 3的实际路径。
# /SpiderIPUpdater/345673.py:你的Python脚本的绝对路径。

3.保存并退出(类似vim)

4.赋予权限

chmod +x SpiderIPUpdater/345673.py

致谢

感谢https://345673.xyzhttps://ipdb.api.030101.xyz等项目提供的优选IP

spideripupdater's People

Contributors

sergioperezcheco avatar

Stargazers

 avatar  avatar  avatar An Mei avatar liwoyuandiane avatar 夜眠迟同学 avatar dot avatar TaoQi avatar 可乐是欧皇 avatar daysdays avatar  avatar  avatar  avatar  avatar Recall avatar  avatar  avatar pan avatar vardven avatar josemespitia avatar  avatar agostop avatar DaBo avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.