Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter username in twittervotes? #57

Open
VhatAmI opened this issue Oct 18, 2017 · 0 comments
Open

Twitter username in twittervotes? #57

VhatAmI opened this issue Oct 18, 2017 · 0 comments

Comments

@VhatAmI
Copy link

VhatAmI commented Oct 18, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant