Git Product home page Git Product logo

giveawaybot-1's Introduction

Giveawaybot

Okay, so this is a twitter giveawaybot coded in python with tweepy.

It searches for contests on twitter for which you have to follow and retweet their tweets.

You'll have to enter your CONSUMER KEY, ACCESS TOKEN and other Twitter app details in main.py

The algorithm is simple:

  1. Connect to twitter
  2. Search for tweets with "Retweet to win" query
  3. Retweet and follow the tweets and users respectively
  4. Wait for some time (5 mins)
  5. If it has been over 2 days after following certain accounts, unfollow the first 50
  6. If the number of followed accounts is greater than 1200, unfollow first 50

Step 6. is because, twitter sets the number of people you could follow based upon the number of people following you. Also, it was a fun project, so there's was no necessary need to follow more than 1200 people :D

Using the Original source author for a particular tweet was hard with tweepy, so the code extracts the tweet text, splits it so that it's highly probable that one gets the Original Author's screen_name

This has been implemented with the split statements on line 73 in main.py

Feel free to contribute. Feel free to use.

Apologies for a NOT SO NEAT code, but I'm a simulation engineer and don't care for neatness :D

giveawaybot-1's People

Contributors

rohitlad avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.