jb55 / go-twitter Goto Github PK
View Code? Open in Web Editor NEW:bird: One of the first go libraries, targets the old Twitter API which no longer works
Home Page: http://jb55.github.com/go-twitter
License: Other
:bird: One of the first go libraries, targets the old Twitter API which no longer works
Home Page: http://jb55.github.com/go-twitter
License: Other
In my twitter crawler I've been noticing that some messages contain xml char data tags like <, >, เต e
Go has a parser than can convert these to normal strings. However, it's part of the XML unmarshal function.
Is there a strict reason why you're using json as the encoding mechanism? It seems that if you make xml requests, the data would be converted more efficiently to a Go string.
The following code prints 0, when it should print the seconds when the status was posted:
package main
import "twitter"
func main() {
api := twitter.NewApi()
api.SetCredentials( "user", "pass")
twuser := <- api.GetUser("user")
status := twuser.GetStatus()
println( status.GetCreatedAtInSeconds() )
}
Go-Twitter doesn't compile on the current release branch of Go
You need to run gofmt -oldparser on the source tree
For instance:
limit := <- api.GetRateLimitInfo()
twuser := <- api.GetUser("hoisie")
Just curious why you chose this model. I'm having a hard time coming up with a use case where it's advantageous to delay receiving the data.
/Users/mike/apps/bin/8g -o go.8 api.go status.go user.go hacks.go search.go util.go rate_limit.go http_auth.go
http_auth.go:68: not enough arguments to CALL
make: *** [go.8] Error 1
You need to change the line to this:
resp, err = http.ReadResponse(reader, req.Method)
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.