Clicking a button automatically in a web browser with python

后端 未结 2 1149
终归单人心
终归单人心 2021-01-12 13:54

Sort of like a bot, i have already checked out some sites such as pyjamas and scrapy, I know how to print data of websites, but still dont know how to interact with buttons.

2条回答
  •  Happy的楠姐
    2021-01-12 14:31

    If you’re looking to really simulate a browser, you might want to look at Selenium, which allows you to control a real web browser.

    If the website you’re looking to interface with uses a lot of JavaScript (e.g. onclick handlers), it can be very handy.

提交回复
热议问题