Code Monkey home page Code Monkey logo

common_spider's Introduction

Common_Spider

一个还算通用的爬虫脚本,可自己设定爬取的深度,可以把网站的动态链接地址和外链单独分出来,做安全测试时可以提前爬一下页面,避免测试时会有遗漏。

Change Log

  • [2018-07-05] 对爬取时遇到的一些异常进行了优化
  • [2018-04-03] 对域名的处理进行了完善

Usage

使用比较简单:

安装requests依赖

pip install requests

运行爬虫

 python2 spider_v3.py  url  5   --> url为待爬取的网站地址,5为爬取深度,可以不设,默认为5。

Screenshot

  • 扫描过程

screenshot

  • 扫描结果

screenshot

  • 外链和动态链接

screenshot

common_spider's People

Contributors

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