PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: kmmankad on 25 February, 2010, 15:04:19

Title: Use Script to pull data from a webpage..Please help :)
Post by: kmmankad on 25 February, 2010, 15:04:19
Hi,i am trying to use a script to pull data from a webpage,for example,mayb news or weather or sports update etc..I kno it can be done using LuaSocket,but i dont have access to any reference on *how* to use it in scripts or any sample code.Please guide me...

inshort,the intended use is ,if sum1 types !news on mainchat,then the top 10 news headlines are pm-ed to him...and no..i dont want RSS feeds.. :)

Thanks :)
Title: Re: Use Script to pull data from a webpage..Please help :)
Post by: kmmankad on 01 March, 2010, 05:42:39
yea..but the thing is that i am behind a proxy...so,how do i deal with that?...where do i enter the proxy?
....like say,my proxy is 10.2.5.3 and i want to get the contents of the file www.google.com/robots.txt into a variable..wht commands would i pass?..please help :)