Webreader/feedreader
 

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

Webreader/feedreader

Started by lito, 09 March, 2007, 15:26:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lito

Hello
is it possible to make a script that shows hockey and football resultate in the hub from att web site

bastya_elvtars

What is the site?
Please use more informative topic titles in the future, thank you.
Everything could have been anything else and it would have just as much meaning.


bastya_elvtars

If I were you, I'd use the rss bot with the apropriate RSS feeds:
<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=100" type="application/rss+xml" title="G?teborgs-Posten/G?teborg">

	<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=102" type="application/rss+xml" title="G?teborgs-Posten/Sverige">
	<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=103" type="application/rss+xml" title="G?teborgs-Posten/V?rlden">
	<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=104" type="application/rss+xml" title="G?teborgs-Posten/Sport">
	<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=180" type="application/rss+xml" title="G?teborgs-Posten/N?je">
	<link rel="alternate" href="http://www.gp.se/rss/index.jsp?d=110" type="application/rss+xml" title="G?teborgs-Posten/Kultur/Gr?nsl?st">
Everything could have been anything else and it would have just as much meaning.

lito

where can i find this rss bot  :)

bastya_elvtars

Everything could have been anything else and it would have just as much meaning.

lito

is there any body ho can fix a rss bot to me  ;)

Lito

Psycho_Chihuahua

Quote from: lito on 10 March, 2007, 12:48:03
is there any body ho can fix a rss bot to me  ;)

Lito

Quote from: bastya_elvtars on 09 March, 2007, 16:45:40
Try searching the forum.



Like bastya has mentioned already Search the Forum and you will find what you want
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

well i m using the rss bot with this link for cricket score
http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
but it gives me*** Error: Connection to http: failed!

can some 1 plzz correct me with the rss part of the link

same goes with football
http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/rss.xml

and also
http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/tennis/rss.xml
bastya can u plzz check whats going here

thks for help
achiever
thks,
achiever.

Psycho_Chihuahua

ok, i took stone-db's latest Lua 5 RSS Bot V2.3 and mucked around with it so it works on the latest PtokaX 0.3.6.0 (only short 1 rss test done)

could be that there are still some unnoticed bugs in it but your cricket rss works (tested)
be sure to put the pxwsa and cc3270 libs in your ptokax root folder (where ptokax.exe is)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

[22:16:24] <Fusion> *** Your request has been placed in queue. Your queue number is: 1
[22:16:42] <Fusion> *** Error: Connection to http: failed!

i m getting this for ne thing i add can ne 1 help me, what am i doing wrong?
thks,
achiever.

Psycho_Chihuahua

Are you using PtokaX 0.3.6.0 ?
Did you put all the libs in the package into your PtokaX Root?


Cause it worked for me (only did 1 test with the cricket rss link you posted)

[18:56:24] <?Feed-Bot?> Added RSS Feed: 
	 Trigger: !cricket
	 Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
	 Desc: cricket
[18:56:24] <?Feed-Bot?> *** New RSS Feed *** 	 Desc: cricket 	 To view, type: !cricket



and like i said it works for me

[18:57:41] <?Feed-Bot?> *** Feed request for:
		   Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
		   Description: cricket
[18:57:41] <?Feed-Bot?> *** Recieving Feed
[18:57:43] <?Feed-Bot?> *** Parsing Feed..... 
[18:57:43] <?Feed-Bot?> *** Applying ASCII Filter.... 
[18:57:43] <?Feed-Bot?> *** Applying ISO 8859-1 Filter.... 
[18:57:43] <?Feed-Bot?> RSS Feeds By RSS-Bot v2.3 [by St0ne db]
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### 

? BBC Sport I Cricket I UK Edition
? http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/default.stm
? Visit BBC Sport for all the action as it happens - up-to-the-minute news, results, breaking news, video, audio and feature stories. BBC Sport covers the major events and all the professional football clubs in the UK, plus cricket, rugby, golf, tennis, motorsport and all the main world sports.en-gbThu, 24 May 2007 16:57:03 GMTCopyright: (C) British Broadcasting Corporation, see http://news.bbc.co.uk/sport1/hi/help/rss/4517815.stm for terms and conditions of reusehttp://www.bbc.co.uk/syndication/15
? BBC Sporthttp://news.bbc.co.uk/sol/shared/img/sport_120x60.gif
? http://news.bbc.co.uk/go/rss/-/sport1/hi/cricket/default.stm
---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  ---  --- 



my rssfeed.tbl looks like

rssfeed = {
	[1] = {
		[1] = "cricket",
		[2] = "newsrss.bbc.co.uk",
		[3] = "/rss/sportonline_uk_edition/cricket/rss.xml",
		[4] = "cricket",
	},
}
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

[23:01:16] <?Feed-Bot?> *** PxWSA Error: Host: http://newsrss.bbc.co.uk could not be contacted. Error: 11004, Valid name, no data record of requested type.


now i m getting this
thks,
achiever.

Psycho_Chihuahua

Then 2 Possibilities i can think of


Either you have NOT put the libs in your PtokaX 0.3.6.0 Rootfolder (thats the folder where ptokax.exe is)

or

you have edited the line (which you should leave as it is)
    sLibs 		= frmHub:GetPtokaXLocation(),			---- PxWSA Location


and with both of those 2 possibilities i and noone else can help you
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

#14
sir i m damn sure i have all the things u have mention correctly.

its showing me error 11004 what does this mean is there some thing else i need to do?

now when i add the feed i get this

Quote[11:39:36] <?Feed-Bot?> Added RSS Feed:
    Trigger: !cricket
    Feed: http://http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: score bot
[11:39:36] <?Feed-Bot?> *** New RSS Feed ***     Desc: score bot     To view, type: !cricket
[11:39:36] <?Feed-Bot?> Added RSS Feed:
    Trigger: !cricket
    Feed: http://http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: score bot
[11:39:48] <?Feed-Bot?> *** Request Queued.
[11:39:48] <?Feed-Bot?> [11:39:47] *** achiever requested:
        Feed: http://http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
        Description: score bot
[11:39:48] <?Feed-Bot?> *** PxWSA Error: Host: http://newsrss.bbc.co.uk could not be contacted. Error: 11004, Valid name, no data record of requested type.
the message rssfeed added comes twice
and instantly as i request feed it gives me the error

here is what my ptokax folder looks like
image was removed by site hosting it
this is supposed to happen:

<?Feed-Bot?> *** PxWSA Error: Host: www.jonsthoughtsoneverything.com could not be contacted. Error: 11004, Valid name, no data record of requested type.


PxWSA will return a error number and error code:

Error: 11004
Valid name, no data record of requested type


My question is why have a feed in your database... and then block its ip?
Of coarse you will get an error.. hehe[/quote]

this is a post from lua board 2 on the same topic, could not understand it on the topic there
http://lua.uknnet.com/thread.php?postid=7471

what does this mean {My question is why have a feed in your database... and then block its ip?}

thks for help.
thks,
achiever.

Psycho_Chihuahua

when adding a feed to this bot DO NOT add the http:// as that is added by the script itself!!

i can see you added it cause look here

[11:39:36] <?Feed-Bot?> Added RSS Feed: 
    Trigger: !cricket
    Feed: http://http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: score bot


should be
[11:39:36] <?Feed-Bot?> Added RSS Feed: 
    Trigger: !cricket
    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: score bot



So dont go ahead saying there are bugs when the Bug is your own fault for not reading the Readme Part inside the script  ::)
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

well i m sorry, i was just trying to get it working for me thats all
some progress i think

Quote[13:11:38] <?Feed-Bot?> Added RSS Feed:
    Trigger: !cr
    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: scb
[13:11:38] <?Feed-Bot?> *** New RSS Feed ***     Desc: scb     To view, type: !cr
[13:11:38] <?Feed-Bot?> Added RSS Feed:
    Trigger: !cr
    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
    Desc: scb
[13:12:05] <?Feed-Bot?> *** Request Queued.
[13:12:05] <?Feed-Bot?> [13:11:52] *** achiever requested:
        Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
        Description: scb
[13:12:05] <?Feed-Bot?> *** PxWSA Error: Host: newsrss.bbc.co.uk could not be contacted. Error: 10060, Attempt to connect timed out without establishing a connection.
[13:12:18] <?Feed-Bot?> *** Request Queued.
[13:12:18] <?Feed-Bot?> [13:12:17] *** achiever requested:
        Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
        Description: scb
[13:12:18] <?Feed-Bot?> *** PxWSA Error: Host: newsrss.bbc.co.uk could not be contacted. Error: 10061, The attempt to connect was forcefully rejected.

error is different atleast ;-)
thks,
achiever.

Psycho_Chihuahua

well like i said it would help if you would read the Readme Part in the script it is all there

--------------- -[ RSS.Feed.Bot.v2.3.LUA5-PtokaX - Features/Notes ]- - ---------
--
----[F.A.Q]-
--
--	Q. 	Feed [x] doesnt work..?
--
--	A. 	It is very important that the Host and File are ABSOULTY correct.. or PxWSA will not connect.
--
--
--
--  Q. 	How to add custom feeds?
--
--  A. 	Find the URL to the feed: ie: http://www.somehost.com/myfeed/feed.xml
--
--			1 - Drop the http://
--      	2 - Use the command to add a new feed, !rssadd (by default)
--      	3 - Syntax = !rssadd <trigger to launch feed> <host> <file> <description>
--					To find the <Host> and <File>, split the URL just after the .com, .org, .net,  etc 
--
--			4 - !rssadd MyFeed www.somehost.com /myfeed/feed.xml My New RSS Feed
--             		      /|\         /|\            /|\               /|\
--          	   	       |           |              |                 |
--          	       Trigger       Host          File           Description
--
-- 			5 - Launch the feed with, !MyFeed
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

well where did i go wrong this time i cuoldnt c on this read me part
i add trigger as cr
host newsrss.bbc.co.uk
file /rss/sportonline_uk_edition/cricket/rss.xml
desc scb

what was wrong :-(
thks,
achiever.

Psycho_Chihuahua

found a small bug/Typo and updated the script

[09:53:49] <?Feed-Bot?> 		       ** RSS Feed Bot Commands ** 

  #  	 Command 				  Info
 *** 	*********				 *****
  1. 	 !cricket  . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
						 >>> 	    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/cricket/rss.xml
						 >>> Description: cricket 
  2. 	 !footbal  . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
						 >>> 	    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/football/rss.xml
						 >>> Description: football 
  3. 	 !tennis  . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
						 >>> 	    Feed: http://newsrss.bbc.co.uk/rss/sportonline_uk_edition/tennis/rss.xml
						 >>> Description: tennis 
*** View just the websites links, add the 'links' flag to your command: !showfeeds links


PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

working gr88888888888

thanks
thanks
thanks
thanks
thanks
thanks
thanks
thanks
thanks
thanks
....


u made my day sir thaks a lot

achiever
i got a error wile deleting 1 of the newly added rss
[12:33] Syntax ...Hub]\scripts\RSS.Feed.Bot.V2.3.Final.LUA5-PtokaX.lua:555: 'string.gfind' was renamed to 'string.gmatch'
thks,
achiever.

Psycho_Chihuahua

change lines 555 to 557

from
for Cmds in pairs(string.gfind(cmd, "%S+")) do
						if string.gfind(Cmds, "\$") then
                            if string.gfind(Cmds, "$",1,true) then


to

for Cmds in pairs(string.gmatch(cmd, "%S+")) do
						if string.gmatch(Cmds, "\$") then
                            if string.gmatch(Cmds, "$",1,true) then
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

achiever

now i m getting [19:49] Syntax ...Hub]\scripts\RSS.Feed.Bot.V2.3.Final.LUA5-PtokaX.lua:555: bad argument #1 to 'pairs' (table expected, got function)
thks,
achiever.

Psycho_Chihuahua

then you will have to wait for a more talented scripter to come along and fix that as i am out of ideas what could be causing it  ???
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

bastya_elvtars

OK, replace
for Cmds in pairs(string.gfind(cmd, "%S+")) do
to
for Cmds in string.gmatch(cmd, "%S+") do
in line 555.
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk