Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Downloading Images from RSS feed
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Downloading Images from RSS feed
#9103
Downloading Images from RSS feed 5 Years, 9 Months ago  
Hi everybody

Here is my problem: I have a xml formatted rss feed, which contains source adresses of *.png images in the tags. Now I want the webparser to get me the adress of the first mentioned *.png file and download it, so it can be displayed on my desktop.

I was thinking of a quite simple *.ini that contains

1) Measure to parse the adress and download the image
2) Meter to display the image
3) Framing background

I know, the main parsing problem is somehow to be worked out with regex. The parser should just find the first

Code:

img src="


and copy all the text up until the ending

Code:

"


I tried reading some tutorials on this, and took a look into existent rss readers. But I have to admit, that I'm pretty clueless still. My scripting skills just match the level of adjusting the looks of rainmeter, I'm afraid
rotegirte
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/03/01 12:00 By rotegirte.
The administrator has disabled public write access.
 
#9123
Re:Downloading Images from RSS feed 5 Years, 9 Months ago  
I added an example to the Rainmeter's wiki how to show an image from a rss feed which could be useful. If you need practice with the regular expressions you can try them out e.g. with regexpal.
Rainy
Moderator
Posts: 6068
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9137
Re:Downloading Images from RSS feed 5 Years, 9 Months ago  
Thanks alot! Especially for RegexPal

By the way, is there are possibility to scale images/meters/*.ini to some max width or height? That means, that they can't exceed the given limits, but are scaled in a way, that preserves the original ratio. I figured out, that i can set static H/W, but since the images' orientation and size ratios varies from time to time, the images are displayed distorted...
rotegirte
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9570
Re:Downloading Images from RSS feed 5 Years, 8 Months ago  
customize.org/rainmeter/skins/62461

there is code in this config that has images from RSS Feeds, it works good.
Rainmaker
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop