Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtractorHTML: Fix srcset by normalizing elementContext() to lowercase #478

Merged
merged 2 commits into from
Apr 27, 2022

Conversation

ato
Copy link
Collaborator

@ato ato commented Apr 22, 2022

This ensures that when we later compare the context in processEmbed() we don't need to deal with variants like srcSet or SRCSET. Note that we're already sometimes lowercasing it in HTMLLinkContext.get().

The second commit adds a main() method to ExtractorHTML to run the extractor against a given URL without having to setup a full job configuration. This is something I find myself frequently reaching for when we encounter a crawl problem.

Fixes #477.

ato added 2 commits April 22, 2022 16:44
This ensures that when we later compare the context in processEmbed()
we don't need to deal with variants like srcSet or SRCSET. Note that
we're already sometimes lowercasing it later in HTMLLinkContext.get().

Fixes #477.
This makes troubleshooting link extraction problems much easier.
@ato ato merged commit 207adec into master Apr 27, 2022
@ato ato deleted the srcset-fix branch April 27, 2022 05:11
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.

ExtractorHTML matches srcset attribute case-sensitively
1 participant