It is currently September 15th, 2019, 10:58 pm

[SOLUTION] Create a "quote of the day" skin using quotesgems

General topics related to Rainmeter.
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: [SOLUTION] Create a "quote of the day" skin using quotesgems

balala » June 17th, 2019, 10:41 am

Aamirkhanp wrote:
June 17th, 2019, 10:37 am
I tried to change the url and the regexp but it doesn't work, I imagine it isn't enough.
Depends on how have you rewrote the RegExp. It can create a lot of troubles.
Please post the original code, with the initial RegExp, to can take a look.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3536
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: [SOLUTION] Create a "quote of the day" skin using quotesgems

eclectic-tech » June 20th, 2019, 4:53 pm

Aamirkhanp wrote:
June 17th, 2019, 10:37 am
Hi everyone! I have a "quote of the day" skin which uses quotationspage.com. Now I want to create a new skin which uses quotesgems.com feed with the same settings. Is it possible? I tried to change the url and the regexp but it doesn't work, I imagine it isn't enough.

Thanks in advance.
You need to decide which quotes you want (quotegems.com offers multiple pages), then once you know which quotes, create the URL and RegExp to parse it.

For example, to parse "I am here for you quotes", I used

Code: Select all

URL=https://quotesgems.com/i-am-here-for-you-quotes/
and

Code: Select all

RegExp=(?siU).*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>.*<blockquote>.*<div>(.*)</div>.*<div>(.*)</div>.*</blockquote>
To capture the first 10 quotes.
iamhere4you.png
If you need more help, please post your current code.
You do not have the required permissions to view the files attached to this post.