x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Project: Reading news.ycombinator.com on a HPC

Karpour Page Icon Posted 2019-07-17 4:11 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
439
Location:
Austria
Status:
Here's a little pet project, it's very beta right now and half of the things don't work, but it might be interesting already

Biggest problem: all my handhelds are currently in another country! D:

Anyway, I made some php scripts that translate news.ycombinator.com into HTML4, plus any article into basic html using a php port of Mozillas "reading mode". Images get converted to gif and resized too but that only works half of the time.

http://news.ohnitsch.net/ <- here's the url

http://news.ohnitsch.net/read.php?url=http://your-url-here <- you can use this with any url, however keep in mind that this is specifically meant to extract article text, so results may vary

If anyone can, let me know if and how well it works on Windows CE 2.11/3.0
(And please don't spread this, this is just for testing)
 Top of the page
C:Amie Page Icon Posted 2019-07-17 4:51 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
Nice job!
The BBC news site is a bit... abstract
http://news.ohnitsch.net/read.php?url=http://www.bbc.co.uk/news

It seems to work in articles
http://news.ohnitsch.net/read.php?url=http://www.bbc.co.uk/news/wor...

... and certainly seems to work here
 Top of the page
Karpour Page Icon Posted 2019-07-17 5:13 PM
#
Avatar image of Karpour
Subscribers
H/PC Philosopher

Posts:
439
Location:
Austria
Status:
Lots to fix still! I wanted to have it display the favicon as site logo more or less, since many sites have pretty big favicons now. Turns out with .co.uk addresses the code I used seems to think the website domain is co.uk where it should be bbc.co.uk. Will fix that, I used some third party code for that!

edit: Articles on hpcfactor work very well indeed!

http://news.ohnitsch.net/read.php?url=https://www.hpcfactor.com/rev...

Edited by Karpour 2019-07-17 5:16 PM
 Top of the page
C:Amie Page Icon Posted 2019-07-17 5:27 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
Your UA is missing its closing parenthesis and has an unnecessary space

2019-07-17 16:23:59 W3SVC5 web01 192.168.0.1 GET /reviews/ - 443 - 85.13.130.167 HTTP/1.1 FaviconBot/1.0+(+http://news.ohnitsch.net/ - - www.hpcfactor.com 200 0 0 43101 120 136
 Top of the page
Jump to forum:
Seconds to generate: 0.125 - Cached queries : 62 - Executed queries : 8