News for hackers. Stuff that matters.
Re:Tell HN: 2 weeks ago, I didnt know programming. I just wr... by code_duck on Friday December 31, 2010 @08:48PM (#2057025)
Yeah, that was what I did when I didn't know anything about programming, too.

The next step is to learn why web scraping is discouraged, and how to use public APIs instead.

Re:Tell HN: 2 weeks ago, I didnt know programming. I just wr... by jacquesm on Friday December 31, 2010 @11:50PM (#2057238)
> The next step is to learn why web scraping is discouraged, and how to use public APIs instead.

Right, just like google uses public api's to access all those sites. Web scraping is responsible for a very large portion of all the traffic on port 80 and the number of sites that have published APIs is extremely small compared to the total.

Re:Tell HN: 2 weeks ago, I didnt know programming. I just wr... by code_duck on Saturday January 01, 2011 @02:00PM (#2058086)
I know, it's odd how some people act like all web scraping is a terrible thing, when people have built such large businesses based on it. Companies try very hard to get scraped by Google, and don't like being scraped by other random entities so much - I suppose it depends on your intent. Poorly written spiders are a problem for system admins.

If a resource does have a public API, some very positive things about using that instead are that not only is it less resource intensive for them, it is much easier for you to create and maintain. If you're relying on scraping to get specific info from a site, it's a huge Odin when changes to their HTML break your code.

Re:Tell HN: 2 weeks ago, I didnt know programming. I just wr... by naithemilkman on Friday December 31, 2010 @09:06PM (#2057045)
What if the site doesn't have an API? Or what is the API is not user friendly? Case in point: address book scraping employed by many companies bypassing APIS. e.g dropbox
Re:Tell HN: 2 weeks ago, I didnt know programming. I just wr... by templaedhel on Saturday January 01, 2011 @01:22AM (#2057313)
Yep, I access HN via a powerful rest API.