enlive-tutorial icon indicating copy to clipboard operation
enlive-tutorial copied to clipboard

scrape1 does not match titles and points correctly

Open qrthey opened this issue 11 years ago • 1 comments

As the screenshot shows, the news site at ycombinator does not always render the amount of points for a news item (likely when no points are given yet). This causes the scrape1 algorith to combine a headline with the points amount of the next item in the resulting output lines.

screenshot-ycombinator

qrthey avatar Aug 19 '14 12:08 qrthey

applies to scrape2 as well, just accidentally faced it :). I'm sure @qrthey is right, the problem is with items without points. The main page looked like this (pay attention to item no. 8):

7. Show HN: Learn Swift (aidanf.net)
     151 points by aidanf 6 hours ago | 35 comments
8. Webflow (YC S13) is hiring Node.js and back end experts (webflow.com)
     16 minutes ago
9. Hitch – A Scalable TLS Proxy by Varnish (github.com)
     8 points by kolev 22 minutes ago | discuss

iinozemtsev avatar Jun 09 '15 18:06 iinozemtsev