Hi :)

Im trying to write a script that can check if Rapidshare links are
online, ive managed to get the content of [code] tags from my website
using scrubyt

[code]<root>
    <link>http://rapidshare.com/files/example/example.rar</link>
[/code]

Im trying to strip the string of anything but the
"http://rapidshare.com/files/example/example.rar" part, so I can work
with it.

I tried to use the .delete function however it doesn¡Çt work.

[code]require 'rubygems'
require 'scrubyt'

data = Scrubyt::Extractor.define do
   fetch 'http://www.mywebsite.com/index.php?action=login'
   fill_textfield 'user', 'myusername'
   fill_textfield 'passwrd', 'mypassword'
   submit
   fetch 'http://mywebsite/index.php?topic=672'
   link '//div/code'
end

rapidshare = data.to_xml.write($stdout, 1)
rapidshare.to_s
rapidshare.delete "<link>"
print rapidshare
[/code]

Any help would be great appreciated :)

is my full code
-- 
Posted via http://www.ruby-forum.com/.