3 ms·
Now that this made it to the front page, I just realized that the page content is not pulled correctly by the Python. :) The Readability bookmarklet seems to d
by nirmal 18y ago
Now that this made it to the front page, I just realized that the page content is not pulled correctly by the Python. :)
The Readability bookmarklet seems to do it just fine. I will need to investigate.
It seems to work fine with most blogging systems. I don't use one. I use Markdown, Python and rsync.
UPDATE: I received a request to add a Comments link to the top and did that. Makes sense if you like to check the comments before deciding what's worth reading. It will probably take a while before the code is reloaded.
- sidsavara 18y agoAwesome! Thanks Nirmal! Talk about customer service. Now, if only it had better twitter integration ...
- SomeIdiot 18y agoYeah, apostrophes seem to turn into some wierd jumble (e.g. ’) and so do other charaters. Aside from that, very nice work. Added to my reader.
- nirmal 18y agoAny clues as to why that happens? The code simply inserts the HTML of the content sections of the linked sites into the RSS feed. It doesn't seem to happen with all sites.
- bd 18y agoProbably it happens when the real text encoding is different from the declared one (at least that's the problem I encountered when aggregating content from unfiltered wild web). If it really bothers, you can use chardet [1] to try to detect the real encoding (BeautifulSoup should use it if it's installed). But even this is not 100% foolproof. [1] http://chardet.feedparser.org/ http://chardet.feedparser.org/
- jauco 18y agoYep, ’ means that the pages contains the UTF-8 quote character, but the browser renders the bytestream as if it's a single byte character stream. The crux is that the basic alphabet is encoded the same. So you only notice it with special characters such as the curly quote and the em-dash.