Skip to content

Comments

Links are now extracted after applying excludeTags#828

Open
txrp0x9 wants to merge 1 commit intofirecrawl:mainfrom
txrp0x9:links_with_excludetags
Open

Links are now extracted after applying excludeTags#828
txrp0x9 wants to merge 1 commit intofirecrawl:mainfrom
txrp0x9:links_with_excludetags

Conversation

@txrp0x9
Copy link

@txrp0x9 txrp0x9 commented Oct 27, 2024

fixes #701


if (pageOptions.includeLinks) {
linksOnPage = extractLinks(rawHtml, urlToScrap);
linksOnPage = extractLinks(html, urlToScrap);
Copy link
Member

@nickscamara nickscamara Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem with this is that we rely on this function for our /crawl, which will end up failling to grab all the links if we don't pass the raw version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mogery lmk if im wrong

Copy link
Author

@txrp0x9 txrp0x9 Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] format: ["links"] doesn't respect excludeTags

2 participants