<?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
|
|
// kyokyo 13215999
|
|
// 苏子怡 13651121
|
|
$service = new AcfunService();
|
|
$upItems = [
|
|
10703951 => "几兔灰",
|
|
4537972 => "香菜猫饼",
|
|
2277346 => "小清晨儿",
|
|
13215999 => "kyokyo",
|
|
13651121 => "苏子怡",
|
|
3540234 => "雾奈奈-",
|
|
826046 => "Sakuya十六",
|
|
16146427 => "椰汁兔",
|
|
36414290 => "你的清清呀",
|
|
44328882 => "cc君辣",
|
|
41347405 => "香波妖精 Gikiki",
|
|
66565394 => "舞小喵 w",
|
|
11039293 => "未南o_o",
|
|
3339658 => "阿呆每天都不想动",
|
|
16380981 => "李礼礼可欣",
|
|
36132015 => "白杨Flora",
|
|
50396965 => "白掌柜Nicole鹿",
|
|
12892608 => "可心喵",
|
|
70864147 => "凛凛苏Sue",
|
|
1702633 => "扛扛扛扛扛",
|
|
71421930 => "慕慕有奶糖",
|
|
71075628 => "大保健",
|
|
7986705 => "岚西阿喵",
|
|
4189643 => "希曦_嘻嘻",
|
|
23537620 => "雨乃乃-",
|
|
32485245 => "郁小漓",
|
|
1075162 => "ParmyAU",
|
|
|
|
// 14047168 => "特喵冲冲"
|
|
];
|
|
$service = new AcfunService();
|
|
// 不用了 $service->requestUpPageApi(10703951);exit;
|
|
foreach ($upItems as $upId => $upName) {
|
|
// $service->queryUpUsersVideosV2($upId, $upName);
|
|
// echo "$upId, $upName \n";
|
|
}
|
|
// dump("here");
|
|
// $service->queryCollectionVideos();
|
|
$service->downloadVideo();
|
|
//
|
|
}
|
|
}
|