Will stay away from JSON then.
Can I use xpath and re:test to grab just the <script> that I want? I tried this and it didn't work:
Code:
root.xpath("//td/script[re:test(., 'szSeries', 'i')]")
That gave me all the <script> tags nested in <td> on the page rather than just the one which contains an szSeries variable. I can test them one by one if need be, but on the surface I thought I could go right to the specific tag I want.
Edit, found an answer:
Code:
root.xpath("//td/script[re:test(text(), 'szSeries', 'i')]", namespaces={"re": "http://exslt.org/regular-expressions"})