Live data from Hacker News

Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

news.ycombinator.com

31–40 of 43 posts

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#31
post #19

I did almost this exact same thing back in 2005. I had not programmed anything in YEARS and I had to help write part of a system that performed DB queries, screen scraped, file transfers, etc. In a 24 period I tried Java, Perl and Python and in the end Python won by miles and miles. I now use Python daily for all sorts of tasks. I love it.

You mean in 24 hours? I think its gonna take me at least a few days lol

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#32
post #6

Your next step on the path to being a hacker is to share your work. Where can we see your "web scraper" in action?

Does this 'URL' help? I think you have to be a member of github to see this. Nice viral mechanism lol.

git clone git://gist.github.com/761348.git gist-761348

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#33
post #26

Earlier quoted context omitted.

I don't know where can I post it? Probably post it to my blog once I've commented it up. Heading out for dinner with the gf so check later! FYI, it looks like a thing of beauty to me but it probably looks like dogshit to the pros. lol.

You will learn a great deal by posting your work for others to see. At first it will feel uncomfortable. You will be concerned that others will mock your work (and they might). But, by the 3rd or 4th time you post your work you will start to feel comfortable with it. The important point is that others will benefit from your experience. Karma.

What a nice thought. Someday someone is going to benefit from the code I wrote. LOL!

I feel like 10,000 miles away from that right now.

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#34
post #6

Your next step on the path to being a hacker is to share your work. Where can we see your "web scraper" in action?

Does this 'URL' help? I think you have to be a member of github to see this. Nice viral mechanism lol. git clone git://gist.github.com/761348.git gist-761348

This one does :-)

https://gist.github.com/761348

Fairly idiomatic code too; particularly impressed with the use of XPath.

Are you scraping glogster or are you with glogster? ;-)

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#36
post #34

Earlier quoted context omitted.

Does this 'URL' help? I think you have to be a member of github to see this. Nice viral mechanism lol. git clone git://gist.github.com/761348.git gist-761348

This one does :-) https://gist.github.com/761348 Fairly idiomatic code too; particularly impressed with the use of XPath. Are you scraping glogster or are you with glogster? ;-)

I had to stackoverflow a lot of it so I claim no credit but thanks anyway :) BTW, what do you mean by idiomatic code? UPDATE Ok quick google for idiomatic code. Gotcha. I wonder what non-idiomatic code for c# looks like?

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#38

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.

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 wrote a web scraper.

#39
post #5

Congrats. Programming is made out to be a hard thing and for people who don't think logically it is. But to a logically thinking person it's like the greatest game you'll ever discover.

it also tends to teach you just how sloppy your thinking usually is with uncanny precision, probably more than you like. Computers invariably do what you tell them to do with great precision and speed but almost never what you want them to do. The number of times that I've stared at a single line knowing that I was looking at the source of the problem and still not seeing the wood for the trees is best left unmentioned...

Programming is a harsh mistress, but the rewards are worth it.

Re: Tell HN: 2 weeks ago, I didnt know programming. I just wrote a web scraper.

#40

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.

> 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.

Post reply on HN