Creating a headless Chrome instance in Python

后端 未结 5 744
陌清茗
陌清茗 2020-12-23 18:09

This question describes my conclusion after researching available options for creating a headless Chrome instance in Python and asks for confirmation or resources that descr

5条回答
  •  难免孤独
    2020-12-23 18:45

    casperjs is a headless webkit, but it wouldn't give you python bindings that I know of; it seems command-line oriented, but that doesn't mean you couldn't run it from python in such a way that satisfies what you are after. When you run casperjs, you provide a path to the javascript you want to execute; so you would need to emit that from Python.

    But all that aside, I bring up casperjs because it seems to satisfy the lightweight, headless requirement very nicely.

提交回复
热议问题