S
Seth ..
Hello,
I've create a simple screen scraper which sends a message to a Jabber
client for notification. The scraper portion works as does the Jabber
portion but I'm having trouble passing the data from the scraper to the
Jabber client.
Here's what gets all the data in the scraper portion
link.search("//font[@class='hosts']").each do |host|
host.to_html.match(/[a-z]+[0-9]*\.(foo|bar)\.[a-z]+/)
end
I then have Jabber setup as follows
cl = Client::new(myJID, false)
cl.connect
cl.auth(myPassword)
m = Message::new(to,
body).set_typenormal).set_id('1').set_subject(subject)
cl.send(m)
cl.close
I somehow have to get the data into the body variable. Any ideas?
I've create a simple screen scraper which sends a message to a Jabber
client for notification. The scraper portion works as does the Jabber
portion but I'm having trouble passing the data from the scraper to the
Jabber client.
Here's what gets all the data in the scraper portion
link.search("//font[@class='hosts']").each do |host|
host.to_html.match(/[a-z]+[0-9]*\.(foo|bar)\.[a-z]+/)
end
I then have Jabber setup as follows
cl = Client::new(myJID, false)
cl.connect
cl.auth(myPassword)
m = Message::new(to,
body).set_typenormal).set_id('1').set_subject(subject)
cl.send(m)
cl.close
I somehow have to get the data into the body variable. Any ideas?