question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

strange diffs getting tweeted

See original GitHub issue

@ruebot noticed a series of odd updates like this which led to the discovery that readability returns very little content sometimes. For example:


import requests
import readability

html = requests.get("https://www.thestar.com/news/world/2017/01/11/uk-teen-charged-with-murder-of-7-year-old-girl.html").content
doc = readability.Document(html)

print(doc.summary())

returns (at the moment):

<html><body><div><div class="article__subheadline" data-reactid="93"><p data-reactid="94">The 15-year-old was remanded into secure accommodation on Wednesday and was also charged with possession of an offensive weapon. </p></div></div></body></html>

Perhaps there should be a configurable threshold below which the content will be ignored or at least not tweeted? Could readability be tuned in this case to return content that is more appropriate like the text of the AP press release?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
edsucommented, Jan 14, 2017

That’s a wise move. Definitely leaving it open because I bet we run up against this type of issue with other sites.

1reaction
ruebotcommented, Jan 14, 2017

I’ve put the torstar account on pause until we can figure this one out since it’s putting out so many false positives.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Differentials & Spools - Strange Engineering
Strange Clutch Type Differentials use a system of clutches (sometimes on one side, sometimes on both sides) to distribute pulling force between the...
Read more >
Strange Bolt-In S60 Rear Differential Assemblies PRSL05
Strange bolt-in S60 rear differential assemblies are designed to fit your vehicle without any modifications. Brake kits are sold separately. Assemblies feature:
Read more >
What's So Good About the Strange S60? - MotorTrend
We show you how we decided on the Strange S60 rearend while building up our 1969 Nova for track and street duty.
Read more >
Strange Engineering - Home | Facebook
8300 Austin Ave, Morton Grove, IL 60053. Get Directions · Rating · 4.7. (551 reviews) · 444 people checked in here · (847)...
Read more >
100T Nadeshot on Twitter: "Dr. Strange was phenomenal ...
This Tweet was deleted by the Tweet author. Learn more ... What was diff about it? ... Hope to see more of what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found