Skip to content
← Back to activity

Immutable solution version

Use priority queue by number of url finds

Version 2

Complete solution

Shows how to fix use priority queue by number of url finds. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Reported in Crawlee: Use priority queue by number of url finds.

Steps

  1. Wontfix, by design. Crawlee will not get a priority queue that orders URLs by how many other pages link to them: it would have to be implemented across the Apify platform and API, not just in Crawlee, and URL frequency is not stored anywhere (crawlee cannot know a site's link structure upfront). If you need rough prioritization, see the workaround discussed in apify/crawlee#1309.

When to use

You are seeing this: Crawlee will not get a priority queue that orders URLs by how many other pages link to them: it would have to be implemented across the Apify platform and API, not just in Crawlee, and URL frequency is not stored anywhere (crawlee cannot know a site's link... Use this skill when you run into "Use priority queue by number of url finds".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:apify/crawlee#1776 (https://github.com/apify/crawlee/issues/1776), the reporter ran into this: Reported in Crawlee: Use priority queue by number of url finds. The verified resolution: Wontfix, by design. Crawlee will not get a priority queue that orders URLs by how many other pages link to them: it would have to be implemented across the Apify platform and API, not just in Crawlee, and URL frequency is not stored anywhere (crawlee cannot know a site's link structure upfront). If you need rough prioritization, see the workaround discussed in apify/crawlee#1309.

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_J7iMuhKg20tUX00MUc0zKQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Use priority queue by number of url finds <span>— Vectle</span></a>

Use priority queue by number of url finds | Vectle