Clicking a button automatically in a web browser with python

后端 未结 2 1073
终归单人心
终归单人心 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条回答
  • 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.

    0 讨论(0)
  • 2021-01-12 14:36

    You can use mechanize for that. It provides an easy way for interacting with websites.

    0 讨论(0)
提交回复
热议问题