开发者

Quickest language to make a little 'Connect to a SSL webpage' script

I just need some advice. I already know how to play with bash, ruby, python and perl and I'd like to know: with which of them would it be faster to make a little script that would connect to a website with SSL and login.

I just need to do this script and make a cron job with it. So it must be executable from the console.

Thanks.

NB: If you have any ex开发者_如何转开发ample script, it'd be awesome :)


I don't know about the others so can't compare, but in Perl, it's quick and easy with WWW::Mechanize or LWP


You could look at Scrubyt if you are familiar with ruby. an example from http://github.com/scrubber/scrubyt_examples/blob/master/ebay.rb

#simple ebay example

require 'rubygems'
require 'scrubyt'

ebay_data = Scrubyt::Extractor.define  do

     fetch 'http://www.ebay.com/'
     fill_textfield 'satitle', 'ipod'
     submit

     record "//table[@class='nol']" do
       name "//td[@class='details']/div/a"
     end
end

puts ebay_data.to_xml
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜