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

Any interest in a twitter bot (like the reddit one)? #88

Open
karan opened this issue Apr 18, 2020 · 6 comments
Open

Any interest in a twitter bot (like the reddit one)? #88

karan opened this issue Apr 18, 2020 · 6 comments

Comments

@karan
Copy link
Contributor

karan commented Apr 18, 2020

Based on local journals sites file, I whipped up https://twitter.com/TakeoverBot. It doesn't run all the time, and isn't even built to handle all errors properly - it's ~70% done. But getting to 90+% would be a few more hours of work.

The repo is private (hard-coded keys lol), but I can share the code if there is interest in maintaining and researching the findings. Any takers?

Its relatively simple go code with likely many optimizations:

  • Using an actual DB for tracking tweets sent (instead of a local csv file)
  • Smarter rate limit handling
  • Discarding old tweets (say older than a week)
  • Saving aggregate data for analysis
  • Linking to a form to collect feedback
  • Possibly running in multiple threads (go func())
  • Variations of messages posted
  • User opt-out
@MattNewtonian
Copy link

MattNewtonian commented Apr 19, 2020 via email

@karan
Copy link
Contributor Author

karan commented Apr 19, 2020

It's tweets are replies, so here https://mobile.twitter.com/TakeoverBot/with_replies

@mentor20
Copy link
Contributor

Yess! Please share the code. We might also want to discard tweets by the Twitter accounts of the domains themselves - filter out any account in the twitterUsername column. Can you remove the keys before committing like this: https://github.com/MassMove/AttackVectors/blob/master/LocalJournals/utils/CyberDome/tron.py#L7 or put them in a git-ignored ini file?

@karan
Copy link
Contributor Author

karan commented Apr 19, 2020

I was trying to muck around to make GOPATH work nice on my system with the code living deep in this repo, but I couldn't. So I decided to just open up the repo: https://github.com/karan/TakeoverBot.

It's Apache 2 licensed so pretty open, so if you'd like to improve it feel free to either put it in this repo, or send me PRs. I can continue using my server and API keys.

@mentor20
Copy link
Contributor

Thanks for sharing the repo! Can you add a link back here in the messages so users can find out more: https://github.com/MassMove/AttackVectors#local-journals?

@mentor20
Copy link
Contributor

Awesome, thanks for adding a link to the bot from the readme! It would also be nice if you could add a link back here to the bot's messages, e.g.: https://mobile.twitter.com/Wardanncheryl/status/1252625571823017984

And I think we should not post on the Tiwtter accounts of the journals themselves - should be easy enough to ignore Tweets from the twitterUsername column in sites.csv?

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

3 participants