Using Python to sign into website, fill in a form, then sign out

前端 未结 5 1652
挽巷
挽巷 2021-01-30 09:42

As part of my quest to become better at Python I am now attempting to sign in to a website I frequent, send myself a private message, and then sign out. So far, I\'ve managed to

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 10:19

    You want the mechanize library. This lets you easily automate the process of browsing websites and submitting forms/following links. The site I've linked to has quite good examples and documentation.

提交回复
热议问题