pablobarbera / streamR

Dev version of streamR package: Access to Twitter Streaming API via R
http://cran.r-project.org/web/packages/streamR/
107 stars 47 forks source link

Filtered stream closes before getting as many tweets as specified, and not possible to reconnect #10

Open wlad-svennik opened 7 years ago

wlad-svennik commented 7 years ago

I'm using the version on CRAN.

First time I ran

filterStream( file.name="jeremy_corbyn.json",
              track='"jeremy corbyn"', tweets=10, oauth=my_oauth )

tweets.df <- parseTweets("jeremy_corbyn.json")

the stream closed after 62 seconds and downloaded only 2 tweets even though I specified 10.

On subsequent times I've tried to connect, it disconnects after 1 second and adds "Exceeded connection limit for user" to jeremy_corbyn.json

[edit]

I restarted my computer. Now when I run the above, I get

Warning message:
In readLines(tweets, encoding = "UTF-8") :
  incomplete final line found on 'jeremy_corbyn.json'