Giter Club home page Giter Club logo

autohookspider's Introduction

AutoHookSpider

将自动爬虫的结果判断是否属于hooks,属于则入库,并不断抓取url爬啊爬。

AutoHookSpider
├── LICENSE
├── README.md
├── hooks.txt   #hooks字典,随机放了200个,可以自己收集。
├── lib
│   ├── __init__.py
│   ├── common.py   #琐碎功能
│   └── record.sql  #先在Mysql创建这个表,并改下common.py数据库连接
├── main.py #主程序
└── requirements.txt
  1. sudo pip install -r requirements.txt
  2. lib/record.sql into mysql
  3. usage: python main.py {Options} [ google.com,twitter.com,facebook.com | -t 20 ]
  4. 或者直接python main.py会直接在hooks.txt抽取(thread_cnt)个入口域名。

autohookspider's People

Contributors

coffeehb avatar developtest2 avatar tr3jer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autohookspider's Issues

main.py中一处bug

嗨,大牛,我在使用的时候发现main.py的95行处发现一个bug

self.entrances = random.sample(self.hooks,self.thread_cnt)
线程数默认设置为20,如果默认情况下使用时hooks.txt目标数小于20,或者用-t设置线程数,但大于hooks.txt里目标数时,这一行代码就会报错。

我的解决办法:在95行上面加2行代码:
'''
if len(self.hooks) < self.thread_cnt:
self.thread_cnt = len(self.hooks)
'''

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.