Skip to content

Commit

Permalink
fix md
Browse files Browse the repository at this point in the history
  • Loading branch information
lxbccc committed Jul 12, 2019
1 parent 2d93aff commit 71c1bd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/JavbusCrawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function prepare_page_rquests($requrl,$pagenum=10,$genre=''){
$this->magnet_time = time();
$this->check_hosturl($requrl);
$this->arr_req_code_36 = [];
for ($i = 1; $i < $pagenum; $i++) {
for ($i = 1; $i < $pagenum+1; $i++) {
$this->arr_req_code_36[]=$i;
}
$total = count($this->arr_req_code_36);
Expand Down
18 changes: 10 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@

## 关于 AVBook

AVBook 是基于Laravel开发的Web应用程序,通过Artisan 控制台实现 avmoo 、javbus 的爬虫采集数据入库mysql,前端页面模仿javbus,并添加一些类似javlibrary的功能。该系统相当于以上三个网站的结合体,能够使你更加方便地管理你的影片
AVBook是基于Laravel开发的Web应用程序,通过Artisan控制台实现avmoo,javbus,javlibrary的爬虫采集数据入库mysql,前端页面模仿javbus,并添加一些类似javlibrary的功能。该系统相当于以上三个网站的结合体,能够使你更加方便地管理你的影片

## 预览

<a target="_blank" href ="https://raw.githubusercontent.com/guyueyingmu/avbook/master/public/avbook/scrshot_index.png" >首页截图</a>
**(友情提示:不要在公共场所打开以下图片)**

<a target="_blank" href ="https://raw.githubusercontent.com/guyueyingmu/avbook/master/public/avbook/scrshot_movie.png" >详情页截图</a>
<a target="_blank" href ="https://raw.githubusercontent.com/guyueyingmu/avbook/master/public/avbook/scrshot_index.png" >🔞 首页截图</a>

<a target="_blank" href ="https://raw.githubusercontent.com/guyueyingmu/avbook/master/public/avbook/scrshot_movie.png" >🔞 详情页截图</a>


## Get Started
Expand Down Expand Up @@ -55,20 +57,20 @@ AVBook 是基于Laravel开发的Web应用程序,通过Artisan 控制台实现
#### 使用方法:

>1.解压到 D:\laragon <br>
2.打开 D:\laragon\laragon.exe ,点击 启动所有<br>
3.访问 <http://127.0.0.1> 或者 <http://avbook.test> enjoy it
2.打开 D:\laragon\laragon.exe ,点击 `启动所有`<br>
3.点击 `网站` 或者访问 <http://avbook.test> enjoy it
>ps:<br>
Ⅰ. 如果没有解压到 D:\laragon 需自行修改Nginx配置,并在hosts文件新增一行 :127.0.0.1 avbook.test <br>
Ⅱ. laragon终端启动爬虫前先 git pull 更新到最新版本。
Ⅰ. 如果没有解压到 D:\laragon 需自行修改Nginx配置,并在hosts文件新增一行 :`127.0.0.1 avbook.test` <br>
Ⅱ. laragon终端启动爬虫前先 `git pull ` 更新到最新版本。

## 其他注意事项

avmoo有反爬虫机制,目前的反反爬虫方法是修改 User-Agent ,用的人多了应该会失效,建议下载[avbook_laragon.7z](https://pan.baidu.com/s/1LPeGNNy-3MEDC0g9EbusLg)导入数据库,进行增量更新。

windows下mysql性能有限,需耐心等待,建议将数据库导入[homestead](https://github.com/laravel/homestead)使用。

在带宽够用的情况下 php artisan avbook:avmoo --max=500 将并发设置为500可在1小时内采集完avmoo全站30余万条电影信息,并发过大时建议使用[SMProxy](https://github.com/louislivi/smproxy)加一层连接池提高速度。
在带宽够用的情况下 `php artisan avbook:avmoo --max=500` 将并发设置为500可在1小时内采集完avmoo全站30余万条电影信息,并发过大时建议使用[SMProxy](https://github.com/louislivi/smproxy)加一层连接池提高速度。

必须等avmoo采集完成,才能启动javbus爬虫。

Expand Down

0 comments on commit 71c1bd1

Please sign in to comment.