Twitter username in twittervotes?
VhatAmI opened this issue · 0 comments
VhatAmI commented
Sorry, last one promise =)
Just finished chapters 5 and 6
I am trying to expand on the current project by tracking the usernames that tweet each hashtag
I think I'll have to edit the query in twittervotes from:
`form := url.Values{"track": {strings.Join(hashtags, ",")}}
formEnc := form.Encode()
u, _ := url.Parse("https://stream.twitter.com/1.1/statuses/filter.json")
req, err := http.NewRequest("POST", u.String(), strings.NewReader(formEnc))`
to grab "screen_name"
Not sure the best way to go about this, was thinking the screennames could go in "participants:" in the poll MongoDB that is already set up. Will probably have to edit poll.go and counter as well to get the whole thing working. I'm calling it a day for now but maybe a hint or two to get this rolling in the right direction if you have time.