GithubHelp home page GithubHelp logo

phpurl's Introduction

Phpurl

此脚本是用来学习php和爬虫基本原理的,其中使用到了redis,mysql以及php的库simplehtmldom.

准备

  • mysqli
  • redis
  • Mysql

Mysql


database:url_caoyi

Tables_in_url_caoyi
keytable
url_post
url_useful
keytable
keychar
url_post
url
url_useful
url

使用

1.把需要爬的网址存入url_post中

insert into url_post values("...");

2.把需要监控的关键字存入ketable中

insert into keytable values("...");

3.运行hiscript.php

php hiscript.php argv1
//argv 是爬虫深度参数,不输入时为0,即不会进行爬虫处理

##结果 结果将实时地储存在redis的urList中,脚本最后也会写入脚本路径下的usefulUrl.txt文件中

##说明 hiscript.php中会运行screen -d -m 来运行hi.php,如果因为时间太长,只能使用kill来处理相关进程。

注:原版在git.oschina.net上

phpurl's People

Contributors

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