Replies: 3 comments 4 replies
-
The span you're trying to access is populated by JS when the page loads, so it's not present in the HTML. Use this instead: https://kjkpubsf.sfo2.digitaloceanspaces.com/software/sumatrapdf/sumatralatest.js |
Beta Was this translation helpful? Give feedback.
-
dang. I checked "View Page Source" and it seriously doesn't have any numbers. 👀 Now I could see why the REGEXs I created are not working. * scratching my head *
Nvm. I tried an inspiration that just came to me and that was the answer to my question. |
Beta Was this translation helpful? Give feedback.
-
I don't think so. You will have to use another website. |
Beta Was this translation helpful? Give feedback.
-
This is from the website Sumatrapdf reader Prerelease the HTML code below
I used "Inspector" to look at the HTML code
The REGEX is
"regex": "<span id=\"\"buildver\"\">([\\d]+)</span>"
I ran
~/bin/checkver.ps1
to test it and couldn't get it working because of this error:couldn't match '<span id=""buildver"">([\d]+)</span>' in https://www.sumatrapdfreader.org/prerelease
Changed the REGEX to
"regex": "<span id=\"buildver\">([\\d]+)</span>"
Above also got the error:
couldn't match '<span id="buildver">([\d]+)</span>' in https://www.sumatrapdfreader.org/prerelease
I have created different types of REGEXs. I am sure the REGEXs are created correctly and should be working properly. I had no problem with other websites where I want to update software in my own bucket. This one makes no sense as I couldn't figure out why. I appreciate your help with this.
Beta Was this translation helpful? Give feedback.
All reactions