Giter Club home page Giter Club logo

url-survival-check's Introduction

url-survival-check

介绍

由于平时在做资产梳理的时候,往往会遇到对大量URL进行存活检测的工作,有时候有的URL使用http能打开,有的则使用https才能打开,手动去检测效率太低,因此简单写了一个批量检测工具。

安装

pip3 install requests

使用

python3 url_survival_check_min.py url.txt
python3 url_survival_check_max.py url.txt

注意事项

  • url_survival_check_min.py的检测结果只有存活的URL,保存结果文件为result_min.txt
  • url_survival_check_max.py的检测结果既包括存活的URL,也包括不存活的URL,保存结果文件为result_max.txt

使用示例

> python3 url_survival_check_min.py url.txt
http://xxx1.com  Not Survival
https://xxx1.com
http://xxx2.com
https://xxx2.com  Not Survival
> python3 url_survival_check_max.py url.txt
http://xxx1.com  Not Survival
https://xxx1.com
http://xxx2.com
https://xxx2.com  Not Survival

url-survival-check's People

Contributors

teamssix 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.