R twitteR searchTwitter geocode warning/error

前端 未结 2 2115
爱一瞬间的悲伤
爱一瞬间的悲伤 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: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.

提交回复
热议问题