Hello,
I am using Twitter4J along with the Twitter streaming API in order to visualize tweets containing a specific word ( the user searches for a word and a stream is then opened using the search term as a keyword).
I am having difficulty with the following:
At the moment, if I want to search for a new word I am having to close and reopen the sketch.
It 'appears' to work when I simply search for a new keyword within the sketch but when I close the sketch I can see the following messages (which would suggest that something is not quite right):
420:Returned by the Search and Trends API when you are being rate limited (https://dev.twitter.com/docs/rate-limiting). Returned by the Streaming API: Too many login attempts in a short period of time. Running too many copies of the same application authenticating with the same account name. Exceeded connection limit for user ** My question is**: What is the correct way to stop a stream and then open a new stream using a new keyword?
Thanks!