diff --git a/app/Console/Commands/CommonTest.php b/app/Console/Commands/CommonTest.php index 17eddda..b10684e 100644 --- a/app/Console/Commands/CommonTest.php +++ b/app/Console/Commands/CommonTest.php @@ -42,7 +42,7 @@ class CommonTest extends Command public function handle() { $commonScrapeService = new CommonScrapeService(); - $commonScrapeService->scrapeBLImage();exit; + $commonScrapeService->scrapeBeautyLegImage();exit; dump(FileUtils::scanDuplicateDir("/Volumes/intel660p/image/xg/ycc"));exit; $fileService = new FileService(); $fileService->segmentFiles("/Volumes/Samsung/weibo/old_image"); diff --git a/app/Services/CommonScrapeService.php b/app/Services/CommonScrapeService.php index 50df9e2..404d520 100644 --- a/app/Services/CommonScrapeService.php +++ b/app/Services/CommonScrapeService.php @@ -1,6 +1,8 @@ get("https://www.v2ph.com/album/z3x469oa.html?hl=en"); +// dump($content);exit; + $attrs = $content->find("img.img-fluid.album-photo.d-block.mx-auto")->attrs("data-src"); + dump($attrs); + } + }