Earlier quoted context omitted.
I have a screenscraping thing in place that targets an ASCII only environment (LambdaMOO mud). Manually replacing unicode stuff like this has been a pain in the butt. Luckily that was all just for fun and didn't need to be perfect. Is there a good library out there (in any language) that does good unicode --> ASCII substitutions for major languages?
I once used latin1_to_ascii (The Unicode Hammer) in python: (works great) http://code.activestate.com/recipes/251871/
Hnweekly: weekly top stories from Hacker News
21–30 of 30 posts
Re: Hnweekly: weekly top stories from Hacker News
#22Allow it to sort by number of comments
Re: Hnweekly: weekly top stories from Hacker News
#23Doesn't seem to handle non-ASCII very well: "Does Gdel matter?"
I might have problems with unicode in PHP (I really don't know much here yet) so I opted to remove them (for now) using regex. btw I'm using http://simplehtmldom.sourceforge.net/ to scrape/parse which is great, it let's you use jquery style selectors on html.
Re: Hnweekly: weekly top stories from Hacker News
#24Allow it to sort by number of comments
Agreed. It is often useful to see which stories are the most-discussed.
Re: Hnweekly: weekly top stories from Hacker News
#25Doesn't seem to handle non-ASCII very well: "Does Gdel matter?"
I might have problems with unicode in PHP (I really don't know much here yet) so I opted to remove them (for now) using regex. btw I'm using http://simplehtmldom.sourceforge.net/ to scrape/parse which is great, it let's you use jquery style selectors on html.
Re: Hnweekly: weekly top stories from Hacker News
#26Cool idea. Anyway, I created a Top Stories Directory 2 days ago too. It will record down every number one stories starting from 2 days ago. But, it lost tracking some stories due to some bugs. But, I already fixed them all. http://hn.siong1987.com
nice work too :)
Re: Hnweekly: weekly top stories from Hacker News
#27Earlier quoted context omitted.
nice work too :)
How long do your crawl the Ycombinator once? Do you actually crawl every page on YC?
Nearlyfreespeech.net doesn't have cron yet, so I'm using onlinecronjobs.com. If you want to scrape it on demand just go to http://hnweekly.watdahel.com/index/scrape
Re: Hnweekly: weekly top stories from Hacker News
#28Good work. Needs an RSS feed.
Re: Hnweekly: weekly top stories from Hacker News
#29Earlier quoted context omitted.
How long do your crawl the Ycombinator once? Do you actually crawl every page on YC?
I scrape only the front page once every ~4hrs (minimum) Nearlyfreespeech.net doesn't have cron yet, so I'm using onlinecronjobs.com. If you want to scrape it on demand just go to http://hnweekly.watdahel.com/index/scrape
Re: Hnweekly: weekly top stories from Hacker News
#30Earlier quoted context omitted.
I scrape only the front page once every ~4hrs (minimum) Nearlyfreespeech.net doesn't have cron yet, so I'm using onlinecronjobs.com. If you want to scrape it on demand just go to http://hnweekly.watdahel.com/index/scrape
But, if you only scrape the frontpage, how can you know the points for all the past stories which are not on the frontpage anymore?