Python: How to simulate a click using BeautifulSoup

前端 未结 2 907
庸人自扰
庸人自扰 2021-01-28 20:07

I don\'t want to use selenium since I dont want to open any browsers.

The button triggers a Javascript method that changes something in the page. I want

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-28 20:51

    BeautifulSoup is an HtmlParser you can't do such thing. Buf if that button calls an API, you could make a request to that api and I guess that would simulate clicking the button.

提交回复
热议问题