How to start with Crawler & ZyteCrawler
Utilizing Different Crawlers with EasyAI
Using the Crawler
Crawleruse EasyAI\Tools\Crawler;
$crawler = new Crawler();To fetch the full HTML content of a webpage:
// one URL
$html = $crawler->getHtml('https://hosono.ai/en');
// multiple URLs
$urls = [
'https://hosono.ai/en',
'https://hosono.ai/de'
];
$html = $crawler->getHtmls($urls);Or, to retrieve only the textual content:
Using the ZyteCrawler
ZyteCrawlerTo fetch the full HTML content of a webpage:
Or, to retrieve only the textual content:
Last updated