Skip to content

Updated readability to find the "main image" when it simplifies content - #3

Merged
adamhaney merged 4 commits into
akimboio:developfrom
dustincannon:main-image
Dec 18, 2012
Merged

adamhaney merged 4 commits into
akimboio:developfrom
dustincannon:main-image

Conversation

@dustincannon

Copy link
Copy Markdown
  • Find the "main image" if possible
  • Added requirements.txt

Adam Haney and others added 3 commits November 26, 2012 07:35
Tweaking Readability to provide cleaner articles.
Added VERSIONS file and updated tag to reflect Akimbo tagging
* Find the "main image" if possible
* Added requirements.txt
@ghost ghost assigned adamhaney Dec 18, 2012
* Updated VERSIONS and setup.py with new akimbo-specific version number
* Updated requirements.txt with specific version numbers

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it's no unheard of for a cdn to throw a redirect to the "actual" url. You might want to change this to r.status_code < 400.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

As discussed, requests will follow any redirect and the status code will still be 200 if the request was successful. The history attribute of the response will contain a list of request objects that were needed to complete the request. See http://docs.python-requests.org/en/v1.0.0/user/quickstart/#redirection-and-history.

adamhaney pushed a commit that referenced this pull request Dec 18, 2012
Updated readability to find the "main image" when it simplifies content
@adamhaney
adamhaney merged commit 490c35d into akimboio:develop Dec 18, 2012
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.

3 participants