Open mcnesium opened 2 years ago
I know I can do
curl -s https://api.invidious.io/instances.json | jq -r '.[][1].uri'
because that is where the data from outside the noscript
comes from, but this might still be a valid issue.
I wonder if this is because this uses servo/html5ever
under the hood:
And it looks like that code may have an option for "scripting_enabled" which defaults to true and then makes noscript
elements raw data
I couldn't see where to set whether not you want to set that to false, but as a complete hack work around, you can do this for now:
$~ curl -s https://redirect.invidious.io | htmlq --text "noscript" | htmlq --attribute href .instances-list a
Trying to get a list of currently available Invidious instances, I started doing
which gave me a list of all the noscript elements on the page, including the one I was looking for:
But when I tried to dig deeper to only get the list of URLs, it only gave me empty results, no matter what I tried:
Is this an issue with
noscript
in general or with that specific site? Why does it find what I am looking for in the first place?Using
htmlq 0.4.0
from AUR