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

Improve www\d*. prefix handling #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tfmorris
Copy link

Fixes #29

This makes two changes to the WWWnnn prefix handling:

  • doesn't remove second level domains like www1234.com
  • only removes a single leading prefix rather than repeatedly removing all prefixes

It also includes a trivial fix for a duplicate test case that I noticed in my travels.

@wumpus
Copy link
Member

wumpus commented Aug 30, 2023

The main intent for this misfeature is to tolerate crappy old web implementations like www1.hp.com and www1.ibm.com. We (and IA) have a lot of crap like that in our old crawls. Yes this is a problem now with garbage www1234.com domains, but let's preserve the toleration of these old url schemes that are actually in our data.

@tfmorris
Copy link
Author

@wumpus thanks for the review, but I'm not sure what, if any, modifications you'd like me to make to this PR.

@wumpus
Copy link
Member

wumpus commented Aug 30, 2023

I want a survey of actual old crawls to make sure the new scheme does what's needed (www1.hp.com -> hp.com) and doesn't do anything bad.

@wumpus
Copy link
Member

wumpus commented Aug 30, 2023

(and I'm not saying you have to do that yourself, I'm saying that it needs to be considered. Bringing up these issues is very valuable, fully solving them will likely involve some analysis by others.)

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.

Removal of leading WWWnnn. in URL canonicalization is too aggressive
2 participants