J
Juo Hundred
Hi 
Im trying to write a script that can check if Rapidshare links are
online, ive managed to get the content of
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.
Any help would be great appreciated
is my full code
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>
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
Any help would be great appreciated
is my full code