show data from html
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

show data from html

Started by Alexandros, 27 March, 2004, 21:34:06

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Alexandros

is there any way to get data from a html, and show it in PM.
so someone say !test and it shows that...i don't know if it can be done, the html refreshes every 40 secs.
this is the html: http://www.futbolargentino.com.ar/scor/parti.html
i only need to show the things in BOLD and the things on the right "Segundo Tiempo", "final", etc...
maybe is impossible or too hard, but, maybe not :)
or give me an example for the first line and i complete the rest.

thanks again :)

Alex

Alexandros

I think then there is no way to do this? or something to get the page to a TXT and then ptokax use that TXT? any soft and scritp to do that?
thanks

alex

b_w_johan

#2
heey alexandros,
maybe this will help.. it reads a .txt
and sends it pm or in main


--this is for main
function DataArrival(user,data)
if strfind(data, "!Readfile",1,1) then -- replace !Readfile with whatever
   readfrom("mytext.txt")
   while 1 do
      line = read()
      if line == nil then break end
      SendToAll(botname,line)
      end
   readfrom()
   end
end


--and thisone for PM
function DataArrival(user,data)
if strfind(data, "!version",1,1) then
   readfrom("yourtext.txt")
   while 1 do
      line = read()
      if line == nil then break end
      user:SendPM(botname,line)
      end
   readfrom()
   end
end

--or do both
function DataArrival(user,data)
if strfind(data, "!version",1,1) then
   readfrom("yourtext.txt")
   while 1 do
      line = read()
      if line == nil then break end
      SendToAll(botname,line)
      user:SendPM(botname,line)
      end
   readfrom()
   end
end
greetings,
Johan :P
checkout http://wwhublist.com/index.php for my World Wide HubList project!

plop

QuoteOriginally posted by Alexandros
I think then there is no way to do this? or something to get the page to a TXT and then ptokax use that TXT? any soft and scritp to do that?
thanks

alex
the problem is the source of the site, it's messy and as a result hard 2 get the stuff from it.
beside that the hub freezes while it grabs the data from the site, so not a good idea.
but you can use the script from johan if you also run a app behind the scenes 2 grab the html and convert that 2 txt.
google a bit for web macro's.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Alexandros

#4
thanks, now i only need a html2txt, i found 2 or 3, but i need that they refrefh the txt every 1 or 2 minutes...if anyone know one that do that...

thanks

alex

Alexandros

QuoteOriginally posted by Alexandros
thanks, now i only need a html2txt, i found 2 or 3, but i need that they refrefh the txt every 1 or 2 minutes...if anyone know one that do that...

thanks

alex

anyone knows a program to do this??(

SMF spam blocked by CleanTalk