enqueue_links does not find any links
Here is the handler:
@self.crawler.router.default_handler
async def request_handler(context: PlaywrightCrawlingContext) -> None: # type: ignore
text = await context.page.content()
self._data[context.request.url.strip()] = {
"html": text,
"timestamp": (
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
),
}
await asyncio.sleep(self._sleep_between_requests)
links = await context.extract_links()
print("---------------------------------------------------", len(links), links)
await context.enqueue_links(exclude=[self._blocked_extensions])
I am also setting max_requests to 100 and max_crawl_depth to 2 when creating crawler.
