HNHacker News
TopNewBestAskShowJobs

geoscripting

105 karma · joined February 13, 2009

submissionscomments
geoscripting··on 5 minutes later, a simple file sharing solution ( Ruby )
For a quick, one-time job, it works very well, and you don't have to bother configuring SSH/FTP for it :). Of course, one could build a lot on top of DRb, I just wanted to show how easy it would be :)
geoscripting··on From Ruby to Fantom:introspection
That will come as soon as I learn more about Fantom
geoscripting··on Using Perl to scrape the web
strict is a standard perl module. HTML::TreeBuilder seems to work just as well with malformed HTML.
geoscripting··on Using Perl to scrape the web
I used Selenium or WebDriver for that. Not bad.
geoscripting··on How to run a java project from the command line
Most of the coders are used to work solely with an IDE, without ever knowing how things work in the background. I know this is something basic for people that know how an IDE works, but most of them don't.
geoscripting··on How to scrape data from sites you can't log into
You could give HtmlUnit a try.
geoscripting··on How to scrape data from sites you can't log into
It is recommended that you use the API that google provides for searching, but I fail to see why telnetting would be illegal. After all, both firefox and telnet use sockets to do their job.
geoscripting··on How to scrape data from sites you can't log into
Yes, I have worked with mechanize before. I was using mechanize even when there only was the perl version. I added a comment to the article explaining my choice.
geoscripting··on How to scrape data from sites you can't log into
The example wasn't written in Java for performance gain. It so happened that I had NetBeans open , and it was easier for me to write it in Java at the moment :).
geoscripting··on How to scrape data from sites you can't log into
There's also mechanize for python. It can be found here : http://wwwsearch.sourceforge.net/mechanize/ . It handles cookies by default, and is a pretty good tool.
geoscripting··on How to scrape data from sites you can't log into
What did you thought this will be about? :)
geoscripting··on How to scrape data from sites you can't log into
More and more websites are adding Turing tests after relatively short intervals of time. I consider that to be a good thing, and there are some good ways to stop/identify spiders. You can check out this site: http://stackoverflow.com/questions/450835/how-do-you-stop-sc... . It shows some pretty good techniques that one can use to defend from spiders.
geoscripting··on How to scrape data from sites you can't log into
Twill is an option indeed, but this way you don't miss out on the javascript. You can take advantage of all of your browser's features.
geoscripting··on How to scrape data from sites you can't log into
I think you misread the article.
geoscripting··on How to scrape data from sites you can't log into
That's how it all starts :)
geoscripting··on How to scrape data from sites you can't log into
True, you can use wget as well, but this way you have more control over your code.