<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Services\AcfunService;
|
|
use Illuminate\Console\Command;
|
|
|
|
class AcfunScrape extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'acfun:scrape';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Command description';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
// 几兔灰 10703951
|
|
// 香菜猫饼 4537972
|
|
// 小清晨儿 2277346
|
|
$service = new AcfunService();
|
|
// 不用了 $service->requestUpPageApi(10703951);exit;
|
|
// $service->queryUpUsersVideos(10703951);exit;
|
|
$service->downloadVideo();
|
|
//
|
|
}
|
|
}
|