Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan avbook:avmoo --max=500报错,如何解决? #49

Open
5536086 opened this issue Jul 18, 2019 · 5 comments
Open

php artisan avbook:avmoo --max=500报错,如何解决? #49

5536086 opened this issue Jul 18, 2019 · 5 comments

Comments

@5536086
Copy link

5536086 commented Jul 18, 2019

[root@ip-172-26-4-191 avbook]# php artisan avbook:avmoo --max=500
this: https://avmoo.asia/cn/
GET: https://avmoo.asia/cn/movie/a before sql
[ 0 error code 404 [] - avbook_avmoo_movie ]

Symfony\Component\Debug\Exception\FatalThrowableError : Class 'App\Console\Tools\PDO' not found

at /www/wwwroot/avbook/app/Console/Tools/MedooEx.php:59
55| $values[] = $map_key;
56|
57| if (!isset($data[ $key ]))
58| {

59| $map[ $map_key ] = [null, PDO::PARAM_NULL];
60| }
61| else
62| {
63| $value = $data[ $key ];

Exception trace:

1 App\Console\Tools\MedooEx::insert("avbook_crawler_404")
/www/wwwroot/avbook/app/Console/Commands/BaseCrawler.php:119

2 App\Console\Commands\BaseCrawler::save_data(Object(GuzzleHttp\Psr7\Response))
/www/wwwroot/avbook/app/Console/Commands/BaseCrawler.php:254

Please use the argument -v to see more details.

@BlacK201
Copy link

php -m看看输出有没有PDO,如果有的话
php artisan migrate:refresh
运行完这个再重新试试

@5536086
Copy link
Author

5536086 commented Jul 18, 2019

运行了,有PDO结果,但是curl -l https://avmoo.asia/cn/ 没有返回结果,估计是被反爬了,有什么好的绕过反爬方法吗?

@BlacK201
Copy link

不知道啊,我也被反爬了,嘤嘤嘤

@leepentium
Copy link

我和楼主的出错信息一摸一样,后来运行了php -m 输出有PDO,再运行php artisan migrate:refresh,还是不行,头大~~~ @BlacK201

@leepentium
Copy link

找到原因了
GET: https://avmoo.host/cn/movie/a before sql
[ 0 error code 404 [] - avbook_avmoo_movie ]
这个链接访问的时候返回404 但是主站访问没有问题,只是屏蔽了这个地址,求求解决方法,谢谢~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants