XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Nov 25日 01:30

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Download Site
PostPosted: 2016年 Feb 1日 10:03 
Offline
User avatar

Joined: 2012年 Dec 18日 00:23
Posts: 74
Hi all!, long time no see! i wanna make a widget that downloads a url to a folder every 3 hours (creating some sort of cache) and then parse the .html to display data in an other widget, although i dont know how to accomplish this with XW, can someone point me to an example or share the code here for these actions?

So what i need is two things:
1- Download url to a folder every XXX time.
2- Parse .html file & display result data from widget.


thank you guys!

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
 Post subject: Re: Download Site
PostPosted: 2016年 Feb 2日 11:41 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
You can use the Webpraser core with RegExp to get the values directly from the webpage, no need to download, the values are assigned to StringIndex1 tags that can be used how ever you like, text, chart or in code. Reading this WebParser tutorial helped me get mine working, even the auto login, just pick out what is relevant to xwidget http://docs.rainmeter.net/tips/webparser-tutorial
Note: do not put the RegExp inside quotation marks xwidget does it for you.


Top
 Profile  
 
 Post subject: Re: Download Site
PostPosted: 2016年 Feb 2日 12:10 
Offline
User avatar

Joined: 2012年 Dec 18日 00:23
Posts: 74
hi meme, thanks a lot! :)
although i would appreciate help on downloading urls, many times i find myself editing a skin and xwidget freezes, so i reset it , and again and again, some sites dont like that lol, so they block me out for a day, Solution 1: close all the skins with rss feeds, currently 6. Solution 2: create a "downloader" skin that downloads all the needed urls and creates a cache folder from where the readers get their data, and when testing just close that one.

_________________
"If it's true that our species is alone in the Universe then i'd have to say the Universe aimed rather low.. and settled for very little"
-George Carlin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group