Live data from Hacker News

Show HN: txtify.it – Easily convert web articles to plain text

txtify.it

11–20 of 25 posts

Re: Show HN: txtify.it – Easily convert web articles to plain text

#11
post #9

Earlier quoted context omitted.

One of the things we do with txtify.it is try to find the content block in the HTML first, then convert only that from HTML to plain text. So in situations where the input URL is a news article or blog post, the output should be cleaner.

Where is your privacy policy?

We'll have one up soon. But essentially no user accounts, and no logging on our servers for this service. Requested articles are cached for a few hours then deleted.

Re: Show HN: txtify.it – Easily convert web articles to plain text

#13

Just a little feedback, there's a small problem with The Economist. It just includes "get our daily newsletter" thingy. Also cool project!

Have you got a URL I can try? This one worked:

https://txtify.it/www.economist.com/news/finance-and-economi...

Re: Show HN: txtify.it – Easily convert web articles to plain text

#14
post #13

Just a little feedback, there's a small problem with The Economist. It just includes "get our daily newsletter" thingy. Also cool project!

Have you got a URL I can try? This one worked: https://txtify.it/www.economist.com/news/finance-and-economi...

Here is it: https://txtify.it/https://www.economist.com/news/leaders/217...

It also shows up in your example as well. Maybe you don't get bothered by it? :)

Please note: the bug is inconsistent, it pops out inconsistently.

Here's the part: "GET OUR DAILY NEWSLETTER Upgrade your inbox and get our Daily Dispatch and Editor's Picks."

Re: Show HN: txtify.it – Easily convert web articles to plain text

#15
post #13

Earlier quoted context omitted.

Have you got a URL I can try? This one worked: https://txtify.it/www.economist.com/news/finance-and-economi...

Here is it: https://txtify.it/https://www.economist.com/news/leaders/217... It also shows up in your example as well. Maybe you don't get bothered by it? :) Please note: the bug is inconsistent, it pops out inconsistently. Here's the part: "GET OUR DAILY NEWSLETTER Upgrade your inbox and get our Daily Dispatch and Editor's Picks."

I thought you weren't getting the content text at all. :)

Should be fixed now. We now strip that out: https://github.com/fivefilters/ftr-site-config/blob/master/e...

But I don't consider that a big problem - lots of sites include things like that in their content. It's annoying, but no easy way to identify them all accurately and remove them without custom rules.

Re: Show HN: txtify.it – Easily convert web articles to plain text

#16
post #15

Earlier quoted context omitted.

Here is it: https://txtify.it/https://www.economist.com/news/leaders/217... It also shows up in your example as well. Maybe you don't get bothered by it? :) Please note: the bug is inconsistent, it pops out inconsistently. Here's the part: "GET OUR DAILY NEWSLETTER Upgrade your inbox and get our Daily Dispatch and Editor's Picks."

I thought you weren't getting the content text at all. :) Should be fixed now. We now strip that out: https://github.com/fivefilters/ftr-site-config/blob/master/e... But I don't consider that a big problem - lots of sites include things like that in their content. It's annoying, but no easy way to identify them all accurately and remove them without custom rules.

Oh, it's certainly not a big problem, I just wanted to let you know :)

liked the project by the way!

Re: Show HN: txtify.it – Easily convert web articles to plain text

#17
post #15

Earlier quoted context omitted.

I thought you weren't getting the content text at all. :) Should be fixed now. We now strip that out: https://github.com/fivefilters/ftr-site-config/blob/master/e... But I don't consider that a big problem - lots of sites include things like that in their content. It's annoying, but no easy way to identify them all accurately and remove them without custom rules.

Oh, it's certainly not a big problem, I just wanted to let you know :) liked the project by the way!

Thanks! :)

Re: Show HN: txtify.it – Easily convert web articles to plain text

#18
post #7

Hey this looks really cool. I think the typography could be improved though, check out http://bettermotherfuckingwebsite.com/ for some inspiration/guidelines on how to accomplish that.

Thanks! :) The output is literally plain text (Content-Type: text/plain). But, I realised it's possible to send a stylesheet in the HTTP header. Chrome seems to ignore it, but Firefox uses it: Link: ; rel="stylesheet"

Very cool! Could you also add viewport css so that it looks better on mobile Firefox? (it already looks nice)

Re: Show HN: txtify.it – Easily convert web articles to plain text

#19
post #18
post #7

Earlier quoted context omitted.

Thanks! :) The output is literally plain text (Content-Type: text/plain). But, I realised it's possible to send a stylesheet in the HTTP header. Chrome seems to ignore it, but Firefox uses it: Link: ; rel="stylesheet"

Very cool! Could you also add viewport css so that it looks better on mobile Firefox? (it already looks nice)

Thanks! Tried adding this to dark.css

  @viewport {
    width: device-width, initial-scale=1;
  }
But didn't work in mobile Firefox.

Seems Firefox and Chrome on mobile handle plain text differently. Firefox shows the text quite small (smaller than if it tried to fit it to device width). Chrome on Android, on the other hand, doesn't seem to try to fit the content at all, showing it at fixed scale which causes additional wrapping to the already 70-char wrapped text we output.

Happy to experiment more with CSS, but ultimately this is simply supposed to be plain text output, so optimal readability isn't really the goal here - although would be nice to improve it. :)

Post reply on HN