Soooo i had a viewer/sub counter for youtube and honestly it worked fine for quite some time. It seems that something recently changed that made it so that now i can see the channel name but the view/sub count no longer registers.... ive tried playing with the RegExp alittle but to no avail.. I would highly highly appreciate if someone who knows rainmeter better than me helped me fix this. Ive done most of the work, some of it i wrote and some from examples of ones i downloaded but even with everything ive tried nothing has worked. Heres what i got, the channel name is showing but no subs and no views, again just to reiterate, this exact skin worked like 2 weeks ago and randomly stopped working. If anyone is interested, ill even pay like 20 bucks PayPal for a nice one.
I just debugged the HTML file response using WebParser's built-in debug mode
Found out that your regex is outdated
It might be possible that the regex I made will get outdated too since YouTube is not obligated to keep their HTML files consistent.
The discord really helped me learn a lot in a day(you are the first one I helped after learning rainmeter) so I want to direct the kudos to all the kind people there who linked me the docs and explained stuff.
But if you really want to thank in some way, maybe gift me nitro 10$ on nope#7777
Hello! I tried using the new RegExp snippets, and it shows a wrong sub count for my channel. I tried with 2 channels, the other it seems to show correctly, but the other one it doesn't. It always shows 1.1K despite me having 3.9K subs. I tried with both the permanent URL about page, as well as the letternumber combo version of the channel name, and neither worked.
I'd also like to know if there is a way to remove the "subscribers" text after the number.
pugshot wrote: ↑July 1st, 2020, 4:40 pm
Hello! I tried using the new RegExp snippets, and it shows a wrong sub count for my channel. I tried with 2 channels, the other it seems to show correctly, but the other one it doesn't. It always shows 1.1K despite me having 3.9K subs. I tried with both the permanent URL about page, as well as the letternumber combo version of the channel name, and neither worked.
I'd also like to know if there is a way to remove the "subscribers" text after the number.
Yincognito wrote: ↑July 3rd, 2020, 4:39 pm
Well, since no one else jumped in, there you go:
Thanks, it worked. However, can you educate me why two channels need two different regexp codes to work? I have 2 channels, and if I swap these regexp snippets, both stop working and don't show anything.
The other channel needs them like this:
RegExp=(?siU)^.*"subscriberCountText":\{"runs":\[\{"text":"([^"]*)"\}\]\}
RegExp=(?siU)^.*"viewCountText":\{"runs":\[\{"text":"([^"]*)".*\}\]\}
and the other channel like this:
RegExp=subscriberCountText":{"simpleText":"(.+?)"
RegExp=viewCountText":{"simpleText":"(.+?)"
If they are swapped, both stop working. Why don't both work with the same values?
pugshot wrote: ↑July 4th, 2020, 2:05 pm
Thanks, it worked. However, can you educate me why two channels need two different regexp codes to work? I have 2 channels, and if I swap these regexp snippets, both stop working and don't show anything.
The other channel needs them like this:
RegExp=(?siU)^.*"subscriberCountText":\{"runs":\[\{"text":"([^"]*)"\}\]\}
RegExp=(?siU)^.*"viewCountText":\{"runs":\[\{"text":"([^"]*)".*\}\]\}
and the other channel like this:
RegExp=subscriberCountText":{"simpleText":"(.+?)"
RegExp=viewCountText":{"simpleText":"(.+?)"
If they are swapped, both stop working. Why don't both work with the same values?
Yeah, I noticed that as well (or I thought I did before). The reason is that the page source that we get the above data from has a slightly different structure in those cases. Why a different structure, I don't know - maybe it's related to the fact that some "channels" are in the form of https://www.youtube.com/user/<SomeUserHere>/about and others are in the form of https://www.youtube.com/channel/<SomeChannelHere>/about...
However, once I formatted the source HTML, it became clearer what should be done. So, replace your regexes with:
and see if it works. This should handle both types of "channels" - if not, post the link of the channel not working with this code, in order to see where the problem is located.
nopeless wrote: ↑June 14th, 2020, 10:32 am
I just debugged the HTML file response using WebParser's built-in debug mode
Found out that your regex is outdated
It might be possible that the regex I made will get outdated too since YouTube is not obligated to keep their HTML files consistent.
The discord really helped me learn a lot in a day(you are the first one I helped after learning rainmeter) so I want to direct the kudos to all the kind people there who linked me the docs and explained stuff.
But if you really want to thank in some way, maybe gift me nitro 10$ on nope#7777