Skip to content

modify the last step of title-extracting - #476

Open
Ckins wants to merge 2 commits into
codelucas:masterfrom
Ckins:master
Open

modify the last step of title-extracting#476
Ckins wants to merge 2 commits into
codelucas:masterfrom
Ckins:master

Conversation

@Ckins

@Ckins Ckins commented Nov 24, 2017

Copy link
Copy Markdown

As stated in the original comments at line 343, we prefer the title_text_h1, when the filter_title is similar to the title_text_h1. However, operator '==' in Python is too strict. I suggest using the string comparaing method in the library 'difflib' to judge wheter title_text h1 is simialr to the filter_title.

@codelucas

Copy link
Copy Markdown
Owner

Cool proposal @Ckins! Will take a look, thanks so much for doing this 💯 👍

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants