5 ms·
OK, I think the bookmarklet/text scraper needs a little tweeking. I just tried Pocket's bookmarklet vs. Instapapers's on the "How Microsoft Fought True Open Sta
by camiller 15y ago
OK, I think the bookmarklet/text scraper needs a little tweeking. I just tried Pocket's bookmarklet vs. Instapapers's on the "How Microsoft Fought True Open Standards" article that is also on the Hacker News front page. Pocket mis-identified the headline, instead getting the name of the blog. In fact the title of the article/blog post is not anywhere in Pocket's scrape.
Link to the article: http://blogs.computerworlduk.com/open-enterprise/2012/04/how-microsoft-lobbied-against-true-open-standards-i/index.htm?cmpid=sbycombinatoranguyen http://blogs.computerworlduk.com/open-enterprise/2012/04/how...
Edit: It also didn't do well with Bruce Schneier's Crypto-Gram Newsletter at http://www.schneier.com/crypto-gram-1204.html http://www.schneier.com/crypto-gram-1204.html
In both of these instances the simply needed to get the content of the <title> tag in the HTML. I would think (careful, here be dragons!) more often than not that the <title> tag should be a reliable way of getting the title of the story.
- TazeTSchnitzel 15y agoSome web devs (like me! :D) are lazy and make the <title> tag always just the website's name.
- mikeklaas 15y agoAs someone who writes an html content extractor, you have no idea how much I hate you.
- TazeTSchnitzel 15y agoOh I hate myself too. I can't distinguish the tabs.
- deleted 15y ago[deleted]
- Tyrannosaurs 15y agoThe first H1 tag might be better (and would also work in this case).
- camiller 15y agoThe first H1 tag in the computerworlduk article says "Blogs", the second has the title.
- LinaLauneBaer 15y agoThe good thing is that Instapaper's extraction process can be modified by anyone who has an account: http://www.instapaper.com/bodytext http://www.instapaper.com/bodytext (Login required) So if something is not working properly you can improve Instapaper on a site by site basis.
- camiller 15y agoI had no idea you could do that! That's cooler than the other side of the pillow!
- vincentmac 15y agoI just tried adding that Microsoft article via the Pocket Chrome extension (https://chrome.google.com/webstore/detail/niloccemoadcdkdjlinkgdfekeahmflj?utm_source=chrome-ntp-icon https://chrome.google.com/webstore/detail/niloccemoadcdkdjli...) and had no problems with it identifying the content correctly.
- camiller 15y agoI haven't tried the Chrome(or Firefox) extension(s), just the bookmarklet javascript that Pocket provides here: http://getpocket.com/welcome?b=Bookmarklet http://getpocket.com/welcome?b=Bookmarklet I'll have to give the extensions a try when I get a chance.