araddon / httpstream Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hoisie/twitterstream
A client for http streaming API's in Go: Twitter, Flowdock, DataSift, Custom
This project forked from hoisie/twitterstream
A client for http streaming API's in Go: Twitter, Flowdock, DataSift, Custom
{"tweet":{"disconnect":{"code":7,"stream_name":"username-statuses656107","reason":"admin logout"}}}
I tried it out with my credentials and got
05:35:46.053035 http.go:116: send: addr = stream.twitter.com:https
2013/06/29 05:35:46 stream.go:135: read tcp 199.16.156.110:443: i/o timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x10 pc=0x4307a0]
goroutine 1 [running]:
github.com/araddon/httpstream.(_Client).Connect(0xc200099460, 0xc2000b40e0, 0xc200095a40, 0xc2000bc0c0, 0x0, ...)
gocode/src/github.com/araddon/httpstream/stream.go:317 +0x3f0
github.com/araddon/httpstream.(_Client).Filter(0xc200099460, 0x777200, 0x0, 0x0, 0xc200095a00, ...)
/gocode/src/github.com/araddon/httpstream/stream.go:372 +0x44b
main.main()
twoauth.go:75 +0x676
goroutine 2 [syscall]:
This affects application go code that includes this library. As a library you should probably defer the decision of log format to the application that is using it.
as of June 11, 2013 Twitter streaming APIs now require oauth for authentication, so this library no longer works. https://dev.twitter.com/docs/streaming-apis/connecting#Authentication
I ran examples/twoautho.go. It doesn't matter if I pass in the users (userIds) argument at all. I'm just getting the sample stream. Search (track) seems to work though.
Wasn't sure if using delimited would improve performance but it would allow for just reading the exact number of bytes. Docs: https://dev.twitter.com/docs/streaming-apis/parameters#delimited. I noticed that Python implementation https://github.com/tweepy/tweepy/blob/master/tweepy/streaming.py uses and so I looked into it. Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.