This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

read rss-urls

Old posts that have not been replied to for several years.
Locked
J
Jagg
Halfop
Posts: 53
Joined: Sat Jan 24, 2004 11:32 am

read rss-urls

Post by Jagg »

Hi,

a rss-link/url looks usually like this

Code: Select all

- <item>
  <title>Subject: Test </title> 
  <link>http://www.link-to-the-title.com</link> 
  <description>That's the description.</description> 
  </item>
....and so on!
What I want is to get the title-tags and the link-tags. Usually there are more than 10 title-/link-tags in it, so ....

I will only get from the 3rd to the 6th one. How can I do this?

Thanks
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

short example the rest is basicly the same the variable $line is the variable you use to get the lines from the server ..

Code: Select all

if {[string match -nocase <title>*</title>]} {
  set line [string map {<title> {} </title> {}} $line]
}
look tcl man for string you can also use trimleft and trimright
XplaiN but think of me as stupid
J
Jagg
Halfop
Posts: 53
Joined: Sat Jan 24, 2004 11:32 am

Post by Jagg »

Ok, this should give me ALL title-tags but how to do this
I will only get the tags from 3rd to the 6th one. How can I do this?
THANKS
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

this script does exactly what you are about to do njoy

http://cvs.ofloo.net/securityfocus/
XplaiN but think of me as stupid
M
MrD666

Post by MrD666 »

I dont know about that...at least as far as being so easy to do cause I downloaded that script , and I even email'd you about Ofloo got no answer OF COURSE ... anyway , I tried it , enterting my own information as it regards the RSS feed that I was interested in , and it just gives me nothing but headaches. Killing the bot , freezing , ect.

It always says no such varible , ect. Its seems like it wants to work , yet it dont fetch the RSS feed. Maybe I am not seeing something , but I tried a LOT of different combinations , and even read up on this ... YES , unlike others I do a LOT of searching and reading. Anyway ... I wish this would have worked cause it would have been very cool ... unfortunately it didnt.

Though I do want to point out it works FINE for the Security Focus Site ! just not for what I needed :(.

MrD666
Locked