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:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s a wise move. Definitely leaving it open because I bet we run up against this type of issue with other sites.
I’ve put the torstar account on pause until we can figure this one out since it’s putting out so many false positives.