Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@alexanderlukanin13
Copy link
Contributor

There is a critical bug in newspaper3k==0.1.5 which prevents it from recognizing urls with dots in them.

For example: http://www.enfieldindependent.co.uk/news/

Please upload a new version on PyPI if possible.

@codelucas
Copy link
Owner

@alexanderlukanin13 another great find!

@codelucas codelucas closed this Jan 10, 2016
@codelucas codelucas reopened this Jan 10, 2016
codelucas added a commit that referenced this pull request Jan 10, 2016
@codelucas codelucas merged commit e1118ee into codelucas:master Jan 10, 2016
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps 5 should be defined in a constants file? Ugh, but it's not like the rest of this codebase set a good example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codelucas 5 is a quick-and-dirty heuristic, and it should be kept local. Moving it to constants would only give it an undeserved air of authority.

The proper solution is to use a extension blacklist and HEAD requests for uncertain cases.

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.