R twitteR searchTwitter geocode warning/error

前端 未结 2 2030
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-26 01:49

I\'m trying to pull tweets using the twitteR package, but I\'m having an issue getting them through the searchTwitter function when I specify a geocode the way they have it in t

相关标签:
2条回答
  • 2021-01-26 02:24

    Had the same issue. Your parameters are in the correct order, but you must avoid any whitespace within the geocode. Also, 10km might be too little a radius for the accuracy of the coordinates given, might want to try with 12mi.

    0 讨论(0)
  • 2021-01-26 02:25

    I believe you need to remove the spaces in the geocode parameter:

    statuses = searchTwitter(keyword, n=100, lang="en",sinceID = NULL, geocode="39.312957,-76.618119,10km",retryOnRateLimit=10)
    

    FWIW You can use the Twitter desktop client "Develop" console to test out URLs before committing them into scripts.

    0 讨论(0)
提交回复
热议问题