Giter VIP home page Giter VIP logo

searspy's Introduction

SearSpy

A web crawl script, search while crawling

Introduction

该项目利用爬虫的原理进行搜索匹配所给关键词的网站,旨在提供全网搜索的功能,发现网络角落。
This project utilizes the principle of crawling to search and match websites with given keywords, aiming to provide a full network search function and discover network corners.
原理是在所给页面中找到所有链接,并访问他们,匹配是否符合关键词并记录,接着重复以上过程,从访问得到的内容中再得到链接,并执行搜索。
The principle is to find all the links on the given page, visit them, match whether they match the keywords, and record them. Then, repeat the above process to obtain the links from the accessed content, and perform a search.

What's new?

v1.9

  1. Request timeout is set to 7 sec (default).
  2. Request timeout can be customized through command parameters.
  3. Simplify some code.
  4. A BUG Fixed: Default request timeout setting was not available in function "web_crawl".

Usage

SearSpy.py

Type this command to make sure that you have already installed the needed library. If not, it would install them automaticly.

pip install -r requirements.txt

Double click (or python3 ./SearSpy.py) to run it.
Type the website's URL you want to search in.
Type your keyword (a word or a phrase is suggested)
Type the Recursion Depth (author suggested to fill the number between 10 and 20, larger number is okey but useless)
Type y or Y if you want to save all crawled links
Type y or Y to display all outputs

If you want to use advanced features, try python3 ./SearSpy.py -h command!

/tools/csv2json.py

This is a programe for turning csv format to json format.
Drag your csv file on its icon and release, or use python3 cv2json.py <path>, or run it and input the file path.

/tools/img_download.py

This program is used to download all images in CSV files that link to the website.
Drag your csv file on its icon and release, or use python3 img_download.py <path>, or run it and input the file path.

/tools/wizardcli.py

This is a SearSpy Wizard Program supports Chinese and English.

To Do

  1. make it faster (multi-thread)
  2. More customization options available

searspy's People

Contributors

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