It is currently March 28th, 2024, 8:27 pm

WebParser

Get help with creating, editing & fixing problems with skins
Javat
Posts: 2
Joined: April 14th, 2017, 9:20 am

WebParser

Post by Javat »

hi guys
i have a silly problem with this WebParser plugin
i came up with this code after reading the tutorial.

Code: Select all

[MeasureSite]
Measure=Plugin
Plugin=WebParser
URL=http://dptime.ir
RegExp=(?siU)<h2 class="date_text">(.*)</h2>
according to tutorial i must get everything inside <h2></h2> which is "آدينه - 25 فروردين 1396" but im getting
"<h2 class="date_text">آدينه - 25 فروردين 1396</h2>"
what am i missing ?
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: WebParser

Post by balala »

Javat wrote:what am i missing ?
A StringIndex=1 option. Add it and you'll get exactly the needed date.
Javat
Posts: 2
Joined: April 14th, 2017, 9:20 am

Re: WebParser

Post by Javat »

yup. thank you.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: WebParser

Post by balala »

Glad to help.