I can't grab Ontario Coronavirus's HTML from a page that's served using JavaScript. I'm using Nokogiri in Ruby.
The site Ruby retrieves is more of a warning/explanation page that says my browser needs JavaScript.
<h1>JavaScript is required to view this site</h1> <p>Ontario.ca needs JavaScript to function properly and provide you with a fast,
stable experience. Please enable JavaScript or check your browser's settings.</p>...Outdated browsers lack safety features that keep your information secure
I tried parsing the page using JSON with the same result. The page comes back as a stringIO object, and that .string also has the same result.
How can I grab this page and any others that get served this way? I'm thinking this is a recurring issue with JavaScript served sites.
ruby scrape javascript".