It is currently April 26th, 2024, 6:26 pm

Problem with WebParser: RegExp matching error (-1)

Get help with creating, editing & fixing problems with skins
User avatar
Droyk
Posts: 56
Joined: July 9th, 2015, 7:40 am

Problem with WebParser: RegExp matching error (-1)

Post by Droyk »

I ALREADY SEARCHED RAINMETER FORUM BUT I CAN'T FIND ANYTHING THAT IS RELATED TO THIS QUESTION

Hey Guys I Made An Rss Reader But I Can't Run It Properly
And Rainmeter Log File Always Says


WebParser: RegExp matching error (-1)

i did all the thing RIGHT but my feed reader shows nothing ;(
AND I AM REALLY SORRY ABOUT MY GREAT ENGLISH I AM FROM JAPAN SO MY ENGLISH IS NOT THAT GREAT
here is my code

http://pastebin.com/T5K7hSiV -------------- THIS IS THE LONG RegExp VERSION
http://pastebin.com/UfiZNxZ0 ----------------- THIS IS THE SHORT RegExp VERSION

THIS RSS FEED FOR
website url is ------ https://kat.cr/
Feed url is ---------- https://kat.cr/games/?rss=1

SOME IMPORTANT INFORMATION IS


i didn't make this i just improve it a little bit and
i am a newbie here and so plz asks what an newbie knows

so what i improve is i added more substrings...
more MEASURE ITEMS AND LINKS

and one month ago it was running fine but now it is not even running
and then i thought i should fully uninstall it and do clean install of rainmeter
but that doesn't work
now everytime i start this rss feed rainmeter log always shows WebParser: RegExp matching error (-1)

I Tried Two Different Type Of Regex

first i tried this

Code: Select all

(?siU)<title.*>(.*)</title>.*<link.*>(.*)</link>.*<item.*<title.*>(.*)</title>.*<link.*>(.*)</link>
and then i tried this

Code: Select all

(?siU)<title>(.*)</title>.*<link>(.*)</link>.*<item>.*<title>(.*)</title>.*<link>(.*)</link>.*</item>
both didn't work same error as before WebParser: RegExp matching error (-1)

it was just running fine a month ago but now it is not even working
and by the way my all other rss feed are working fine but it's only for other websites

and only the kat.cr rss rainmeter feed is not working
and then i thought it could be the website problem but no all the other browser extensions feeds are working fine
so i really don't what the problem is :(

And i tried jsmorley WebParser Tester

This WebParser Tester tester says there is no problem here is the proof


and i tried this jsmorley RainRegExp - Rainmeter Regular Expression tester
here is the proof


so can u plz tell me guys what really the problem is
Last edited by Droyk on September 18th, 2015, 12:22 pm, edited 7 times in total.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley »

Not entirely sure, but it I suspect that site is doing some kind of browser detection, and can't recognize the user agent string being sent by Rainmeter (and RainRegExp) or is otherwise trying to query the browser and can't.

When I go to that site in my Chrome browser, it looks fine, but in RainRegExp or WebParser, I get just hideous gibberish returned from the site.

Some sites will do that to try and ensure that access is through a browser, as they want you to see the advertising on the site.

Not sure there is any easy solution for this.
User avatar
Droyk
Posts: 56
Joined: July 9th, 2015, 7:40 am

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk »

jsmorley wrote:Not entirely sure, but it I suspect that site is doing some kind of browser detection, and can't recognize the user agent string being sent by Rainmeter (and RainRegExp).

My Chrome user agent string:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36

WebParser / RainRegExp user agent string:
Rainmeter WebParser plugin

When I go to that site in my Chrome browser, it looks fine, but in RainRegExp or WebParser, I get just hideous gibberish returned from the site.

Some sites will do that to try and ensure that access is through a browser, as they want you to see the advertising on the site.

Not sure there is any easy solution for this. The only thing that might work is using an external call to cURL so you can fake a user agent string of Chrome or Firefox or some such, and download the site for reading by WebParser. That would be a fairly big project.
Well i will do anything for that because i really want to see the rss feed for downloading the games
it's too much of an problem everytime u want to see the rss u have to open the browser (it's too annoying )
soo plz help me with this

i know it will take your lot of time but plz i really want to get this thing work again
thanxxx
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley »

Sorry, there is just nothing more I can do. It tested it with a different user agent string in RainRegExp, and got the same results. I suspect the site is somehow querying to ensure you are accessing it through a browser, and there is no way WebParser is going to be able to deal with that.
User avatar
Droyk
Posts: 56
Joined: July 9th, 2015, 7:40 am

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk »

Actually utorrent have an rss feed reader
is there is any way we can see that through rainmeter

like this Image
http://jsmorley.deviantart.com/art/LuaTorrent-3-1-2-291523853

this is your utorrent rainmeter monitor skin
i think if we could read what utorrent have in their rss feed
we could fix our rainmeter skin right :)

plz say we can fix this by using this method

and another method is
we can fix this by desktop based rss feeder
http://www.rssowl.org/
only if we could read what desktop based rss feeder have
and we can show that information through our rainmeter skin
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley »

No, uTorrent has nothing to do with this. The web-based interface for uTorrent that WebParser can access only lists the currently downloading torrents.

I'm sorry, but I'm walking away from this one. I don't see any way to get WebParser to see that site properly, and that is as far as I am willing to go.
User avatar
Droyk
Posts: 56
Joined: July 9th, 2015, 7:40 am

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk »

As i said there is another method too
if we could see the rss from desktop based reader
we could actually do this

this will only take your small amount of time plz
we just have to see how we can use the information of desktop based reader through our rainmeter rss feeder...

thats it thats really simple thing plz
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley »

You do not have the required permissions to view the files attached to this post.
User avatar
Droyk
Posts: 56
Joined: July 9th, 2015, 7:40 am

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk »

jsmorley wrote:So it looks like YahooAPIs is able to get the feed.

You can use:

URL=http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url=%22https://kat.cr/games/?rss=1%22
1.jpg
Thanxxx jsmorley :) :rosegift:
really a big thanxxx
:rosegift:
i really don't know how did u do that but a really big thanxxx and can u plz tell me how did u that ?and why parse is showing nothing but

Code: Select all

(?siU)
(only if u could)
and if u want anything from me just say it i will do it for U thanxx [/b] :rosegift: :bow:

That was a a big relief
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley »

http://rainmeter.net/forum/viewtopic.php?p=95092#p95092

I did not parse the site, that is up to you. That is why RainRegExp only has (?siU). I have no interest in doing the regular expression for you, it's a pretty standard RSS feed.