Code Monkey home page Code Monkey logo

twitterbot's Introduction

TwitterBot

Let's make a Twitter bot (or two!)

Setup in Terminal

  1. Fork this repository to your GitHub account
  2. Clone the forked repository on your computer's Desktop
  3. cd into that directory (cd twitterbot)
  4. virtualenv bot
  5. OSX: source bot/bin/activate | Windows:
  6. pip install -r requirements.txt
  7. open your tweetbot folder in a text editor (TextWrangler/Notepad++)

Twitter

  1. Create a new Twitter account (give it your mobile phone number - sorry.)
  2. Create a Twitter app by clicking on "Create New App"
  3. Fill out the necessary details for your bot’s name, description, and website (use your repo URL) and don’t worry about "Callback URL".
  4. Agree to the checkbox for “Terms of Service” and click on "Create Your Twitter Application."
  5. Click on the "Keys and Access Tokens" tab.
  6. Modify the app permissions to have it be able to read and write.
  7. Click the button that says "Regenerate Consumer Key and Secret"
  8. Click the "Create my access token" button
  9. Switch back to your text editor

Text Editor

  1. Copy your Consumer Key, Consumer Secret, Access Token and Access Token Secret in that order to the places in tweetbot.py and tweetbot2.py.
  2. In tweetbot2.py, change propublica to a search term you'd prefer.
  3. Save both files.

Terminal

  1. Run python tweetbot.py
  2. Check your twitter page
  3. Run python tweetbot2.py
  4. Open data.csv in the same directory.

twitterbot's People

Contributors

dwillis avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

kiran-kowda

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.