Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
LinkedIn使用Python自动登录_Python_Linkedin - Fatal编程技术网

LinkedIn使用Python自动登录

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

可以用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["session_key"] = "your_email"
browser["session_password"] = "your_password"
response = browser.submit()

print response.read()
以下是一些关于mechanize模块的好文章,以防您不熟悉它:


你不能只使用“记住我”选项吗?嘿,这里没有使用“记住我”选项的浏览器。我说的是脚本。你需要看看你最喜欢的编程语言的SocialAuth API。这就是你所说的全部想法