【问题标题】:Finding the PIN from Twitter.Com after using twitteR library on R and ROAuth package在 R 和 ROAuth 包上使用 twitteR 库后从 Twitter.Com 查找 PIN
【发布时间】: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 TwitterWhere does twitteR PIN code appear during R oauth authentication?,但都没有成功。

任何回应都会非常有帮助。

谢谢。

顺便说一句:R Noob 和基本程序员。

【问题讨论】:

    标签: r twitter twitter-oauth roauth


    【解决方案1】:

    为了避免被重定向到占位符网站并查看您的 PIN。

    你应该:

    下次你将使用http://api.twitter.com/oauth/authorize?oauth_token=xxxx 并点击“授权”,您将看到 PIN 码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-03
      • 1970-01-01
      • 1970-01-01
      • 2019-09-10
      • 2011-12-28
      • 2020-05-04
      • 2013-04-17
      • 2013-07-22
      相关资源
      最近更新 更多