I had someone email me today asking for a code snippet of using the java twitter api, so I'll repost it here. I'm fairly new to clojure so forgive me for the ugliness/lack of idiomatic code. It's a port of the java example code at https://github.com/twitter/hbc/blob/master/hbc-example/src/main/java/com/twitter/hbc/example/FilterStreamExample.java
with some additional logic to dump messages onto rabbitmq. Clojure code here https://www.refheap.com/85199 Cheers, Andrew Fitzgerald On Friday, May 2, 2014 3:40:06 AM UTC-4, Simon Katz wrote: > > Thanks Andrew and Gary. You've saved me a lot of time! > > > On Friday, 2 May 2014 02:43:51 UTC+1, Gary Trakhman wrote: >> >> Oh, nice, I was concerned about reconnections and backfill issues, if I >> have to change anything substantial again I'll reimplement on top of the >> java api that provides this out of the box. >> >> >> On Thu, May 1, 2014 at 9:13 PM, Andrew Fitzgerald >> <andrewcf...@gmail.com>wrote: >> >>> I had the same (very frustrating issue) recently. I ended up just using >>> the official twitter API which is written in Java >>> https://github.com/twitter/hbc >>> >>> >>> On Thursday, May 1, 2014 6:59:04 PM UTC-4, Simon Katz wrote: >>>> >>>> Hi, >>>> >>>> I'm playing with twitter-api (https://github.com/adamwynne/twitter-api) >>>> and streaming calls. I've also tried twitter-streaming-client ( >>>> https://github.com/mccraigmccraig/twitter-streaming-client). >>>> >>>> With the examples each of those provide, I'm getting *EOFException: >>>> JSON error (end-of-file)* errors. >>>> >>>> I can of course post more details, but I'm hoping someone else might >>>> have come across this and be able to give me a pointer as to what's >>>> happening. >>>> >>>> I wonder if perhaps something's changed in the Twitter API recently to >>>> break things. >>>> >>>> __ >>>> Simon >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To post to this group, send email to clo...@googlegroups.com >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> To unsubscribe from this group, send email to >>> clojure+u...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Clojure" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to clojure+u...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.