I have a Problem but my english is very bad!
![Crying or Very sad :cry:](./images/smilies/icon_cry.gif)
I am currently write a script to get information from the www.esl-europe.de site, but the eggdrop must be logged in to the site...
i dont know how I can login mein eggdrop to the site...
example of my script...
Code: Select all
package req http
set url "http://www.esl-europe.net/de/database/players/search/?gameaccount_type=steamid&gameaccount=0:0:12235&x=37&y=3"
bind pub n "?id" proc_id
proc proc_id {nick host hand chan text} {
global url
set token [http::config -useragent "Mozilla 4.0"]
catch { set token [http::geturl $url] } error
putlog "\002status\002: [http::status $token]"
putlog "\002error\002: [http::error $token]"
if {$error=="couldn't open socket: host is unreachable"} {
putlog "\002$url\002 is unreachable."
}
set htmldata [http::data $token]
putlog "\002html\002:\n$htmldata"
regexp -nocase {<meta name="(.*?)" content="INDEX,NOFOLLOW">} $htmldata temp info
putlog "\002info:\002 $info"
http::cleanup $token
}
and the regexp is the metatag, and he give a return, but when I go to the nick he cant find the var!