Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stcer committed Dec 2, 2016
1 parent 63e6731 commit e6588d6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 用来做什么的
一个简单的网页数据采集器

## Installation

```
composer require stcer/j-spider
```
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
},

"require": {
"php": ">=5.4.0",
"stcer/jcore" : "dev-master"
"php": ">=5.4.0"
},

"repositories": [
Expand Down
3 changes: 3 additions & 0 deletions example/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

use jcom\spider\PHtml;

$vendorPath = realpath(__DIR__ . "/../vendor/");
$loader = include($vendorPath . "/autoload.php");

function test_list(){
$url = 'http://www.bmlink.com/news/list-26-1.html';
$rules = array(
Expand Down
5 changes: 4 additions & 1 deletion example/test_session.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

use j\spider\PHtml;
use jcom\spider\PHtml;

$vendorPath = realpath(__DIR__ . "/../vendor/");
$loader = include($vendorPath . "/autoload.php");

$url = 'http://php5.9z.cn/go.php?action=regist';

Expand Down

0 comments on commit e6588d6

Please sign in to comment.