LinkedIn使用Python自动登录
可以用Python创建自动登录脚本吗?我有我的LinkedIn帐户,我只想自动登录 有很多方法可以完成你的任务。为了快速完成工作,我将使用mechanize模块LinkedIn使用Python自动登录,python,linkedin,Python,Linkedin,可以用Python创建自动登录脚本吗?我有我的LinkedIn帐户,我只想自动登录 有很多方法可以完成你的任务。为了快速完成工作,我将使用mechanize模块 import mechanize browser = mechanize.Browser() browser.set_handle_robots(False) browser.open("https://www.linkedin.com/") browser.select_form(name="login") browser["se
import mechanize
browser = mechanize.Browser()
browser.set_handle_robots(False)
browser.open("https://www.linkedin.com/")
browser.select_form(name="login")
browser["session_key"] = "your_email"
browser["session_password"] = "your_password"
response = browser.submit()
print response.read()
以下是一些关于mechanize模块的好文章,以防您不熟悉它: