【发布时间】:2013-09-02 17:40:01
【问题描述】:
我有一个问题希望有人能帮助我。
我正在尝试使用 twitteR 库和其他必需的软件包通过 R 从 Twitter 获取一些推文。我已经成功地创建了我的代码直到握手。但是,一旦我到达应该复制并粘贴链接以获取所需 PIN 的位置,我就会被重定向到我在 Twitter 上注册的占位符网站地址。
下面是我的代码块:
cred <- OAuthFactory$new (consumerKey = consumerKey, consumerSecret = consumerSecret, requestURL = "http://api.twitter.com/oauth/request_token", accessURL = "http://api.twitter.com/oauth/access_token", authURL = "http://api.twitter.com/oauth/authorize")
cred$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))
这会导致提示
To enable the connection, please direct your web browser to: http://api.twitter.com/oauth/authorize?oauth_token=_______________________
我在 Stackoverflow.Com 中尝试了几个答案,例如 No PIN generated when using ROAuth to authenticate on Twitter、Where does twitteR PIN code appear during R oauth authentication?,但都没有成功。
任何回应都会非常有帮助。
谢谢。
顺便说一句:R Noob 和基本程序员。
【问题讨论】:
标签: r twitter twitter-oauth roauth