Giter Club home page Giter Club logo

hb_ex08's Introduction

Here are the steps for creating a Twitter App.

0.[Optional] Create a new Twitter account to post to (you could post to your own if you would like).
1. Login to your twitter account
2. Go to https://apps.twitter.com/ and click “Create New App”
3. Fill in the Data Twitter asks for (Name, Description, URL don’t matter for our purposes)
  3a. Website must include the protocol (https://)
  3b. Leave the callback url blank, we won’t need it for the Markov project
4. Agree to the Developer Agreement and Create the App
5. Click on the “Permissions” Tab and change the permissions to allow for Read & Write Access, save the form
6. Click on "Keys and Access Tokens”, Click on “Regenerate Consumer Key and Secret”, Confirm the action
7. Scroll to Access Tokens and click “Generate Access Token and Token Secret”

You now will have all of the Tokens / Consumer Keys you need.  You can now create a secrets.sh file in your project folder and put the needed export statements in there. Remember, you’ll need to run source secrets.sh whenever you open a new terminal window.

export VAR_NAME=‘SOME VALUE'

Also, as requested here is the code.

https://github.com/naudo/Twitter-API-Lecture

api.py is the first python file I was working with during lecture.
tweet_machine.py is the second file that performs the actual tweeting.


Cheers,
Nicholas

hb_ex08's People

Contributors

hackbrightsalesforcegithub avatar

Watchers

James Cloos avatar  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.