mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-19 14:41:00 +00:00
1 line
1.5 KiB
JSON
1 line
1.5 KiB
JSON
[{"user_id": 27588, "stars": [], "topic_id": 42790, "date_created": 1311741828.543371, "message": "I need to parse a url for it's content in python. I want to execute all js of html page associated with the url and then parse for the content so that javascript induced changes in content are also present. I was wondering if there is a way to execute js associated in page in sandbox environment before I start parsing it.", "group_id": 95, "id": 1728851}, {"user_id": 14679, "stars": [], "topic_id": 42790, "date_created": 1311813226.264843, "message": "What you're describing is pretty complex; you'll need not only a sandboxed Javascript environment but an HTML parser and DOM API implementation. Essentially, a web browser rendering engine. Some rendering engines can be programmatically controlled so you could perhaps load the page, run JS, and then dump the DOM state. I'm not sure off hand what your options are but you might look for code that e.g. creates a website thumbnail given a URL.", "group_id": 95, "id": 1735414}, {"user_id": 842, "stars": [], "topic_id": 42790, "date_created": 1311822624.5630491, "message": "Yeah, sounds like you're reinventing an entire web-browser. Pretty tall order. Maybe try googling \"QWebKit\".", "group_id": 95, "id": 1736171}, {"user_id": 28322, "stars": [], "topic_id": 42790, "date_created": 1311836120.827275, "message": "Hi i want to make the demo with solr php client.How would i do it???Please help me...", "group_id": 95, "id": 1737232}] |