Are there implementations of the W3C DOM other than in web browsers?

后端 未结 2 655
北荒
北荒 2020-12-21 08:06

So we all know that the DOM (Document Object Model) is an interface that represents HTML pages in web browsers and that you can interact with it using JavaScript.

An

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 08:25

    The term you're looking for is "headless browser" and yes they do exist. No need to spin up an instance of IE, Chrome, or firefox to execute JavaScript and mine data from the DOM. Check out Phantom.js or Zombie.js.

    Plenty of other questions related to this topic:

    • Real headless browser
    • Headless Browser for Python (Javascript support REQUIRED!)
    • headless internet browser?

提交回复
热议问题