GithubHelp home page GithubHelp logo

m2kio / tweetbot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 60 KB

A script that fetches a prayer from https://api.du3aa.rest and tweet it

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

License: MIT License

Python 100.00%
twitter twitter-api python api api-rest

tweetbot's Introduction

Du3aaAPI TweetBot

A script that fetches a prayer from https://api.du3aa.rest and tweet it

Warning

This script does not work anymore, you can try the new working version at https://github.com/m2kio/TweetBot-v2

Development

Requires Python >= 3.5

It is recomended to create a Python virtual environment for development as below.

  • Create a Python virtual environment python3 -m venv ./venv
  • Activate the Python virtual environment source ./venv/bin/activate
  • To deactivate the virtual environemnt, simply run deactivate

Install requirements

pip install -r requirements.txt

Usage

python app.py [post|test]

Required Environment Variables

  • Twitter Consumer Key
  • Twitter Consumer Secret
  • Twitter Access Token Key
  • Twitter Access Token Secret

Get them at https://developer.twitter.com

To set environment variables on macOS or Linux, run the export commands below from the terminal

export CONSUMER_KEY="YOUR-KEY"
export CONSUMER_SECRET="YOUR-SECRET"
export ACCESS_TOKEN_KEY="YOUR-ACCESS-KEY"
export ACCESS_TOKEN_SECRET="YOUR-ACCESS-SECRET"

tweetbot's People

Watchers

 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.