bennyguitar / libHN

The definitive Objective-C library for adding HackerNews to your iOS/Mac app.
MIT License
150 stars 26 forks source link

It's broken now #16

Closed Dimillian closed 10 years ago

Dimillian commented 10 years ago

Yeah, since this morning, the scrapping of the news page (potentially) does not work anymore. I did not yet had the time to look at it.

Dimillian commented 10 years ago

Sound like it's fixed, HN fixed it :)

Dimillian commented 10 years ago

It's broken right now. I don't know what's going on but HN is adjusting its markup I think. I played with your scrapper a bit,

For example if you change

NSArray *htmlComponents = [html componentsSeparatedByString:@"<tr><td align=right valign=top class=\"title\">"];

to

NSArray *htmlComponents = [html componentsSeparatedByString:@"<tr><td align=\"right\" valign="\top"\ class=\"title\">"]; 

You get the components back, I'll let you look at the other things (like users, comments count etc..).

The weird thing is that it did the same thing yesterday and worked back after sometimes.