Scrapy: extract JSON from within HTML script
问题 I'm trying to extract (what appears to be) JSON data from within an HTML script. The HTML script looks like this on the site: <script> $(document).ready(function(){ var terms = new Verba.Compare.Collections.Terms([{"id":"6436","name":"SUMMER 16","inquiry":true,"ordering":true},{"id":"6517","name":"FALL 16","inquiry":true,"ordering":true}]); var view = new Verba.Compare.Views.CourseSelector({el: "body", terms: terms}); }); </script> I'd like to pull out the following: [{"id":"6436","name":