Coder Social home page Coder Social logo

taniamalhotra / hacktoberfest-bot Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 6.0 158 KB

A bot that tweets open issues labeled with "Hacktoberfest"

Home Page: https://twitter.com/Hacktoberfesti1

License: MIT License

Python 100.00%
twitter hacktoberfest hacktoberfest-accepted twitterapi twitter-bot tweepy-library

hacktoberfest-bot's Introduction

Hacktoberfest Bot

A twitter bot to make the process of finding relevant issues for contribution easier. It tweets open and unassigned issues labeled with hacktoberfest label and thus you can easily choose the one you would like to contribute to!

Give a follow!

How to run the bot in your terminal

  • Clone the repository using git clone https://github.com/TaniaMalhotra/Hacktoberfest-Issues-Twitter-Bot
  • Navigate to the tweepy-bot directory
  • You will need to set the values of the following four environment variables : consumer_key consumer_secret access_token access_secret
  • Go to your twitter app's dashboard and set a new app here
  • Get the keys and authenticate
  • Run python bot.py

How to set up your Twitter API

  • Go to the Twitter Developer's site and sign in with the Twitter account you want to associate with your app.
  • After logging in, click on the downwards arrow next to your image and select "My Applications". This is where all your registered Twitter Apps will be shown.
  • Create your application by clicking on the 'Create a new application' button.
  • Fill in the relevant details in the application form, including your website URL in the website field. This is where your app will be hosted. The Callback URL field can be ignored for the time being. Read and accept the terms and conditions and click on "Create Your Twitter Application" button and you're good to go!
  • You will be taken to a new screen where you need to create an access token for yourself to authorize your Twitter app for your Twitter account. Click on "Create my access token" to do this. Note: You will need to generate a new token if you change app permissions at any future point of time.
  • After the token is generated, choose the type of access you require. Change it to 'read and write' to give the app permission to follow other accounts on your behalf. This will prompt a mobile verification with your twitter account.
  • You are done setting up your Twitter API. Keep a note of the following (which are to be kept secret):
    • Consumer Key
    • Consumer Secret
    • OAuth Access Token
    • OAuth Access Token Secret

Troubleshooting

I am pretty new to this bot thing. Saw any errors while running the bot? Consider opening up a new issue

Contributing

  • If you have got any suggestions, drop your suggestions here.
  • Read the Contribution guide here.

License

Read our license here

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.