Skip to content
/ Lazy100 Public

A CLI to automate #100DaysOfX Challenges 🤖

License

Notifications You must be signed in to change notification settings

bksahu/Lazy100

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy100

Logo

GitHub license GitHub issues Awesomeness Twitter

A CLI to automate #100DaysOfX Challenges that will commit your work to your github account and also tweet your progress to your twitter account.

There are two mode of it's operation:

  • Automatic

Lazy100-Auto

NOTE: Your progress must be saved in a directory named in this form: Day. LessonName. Example: 1. Linear Regression

  • Manual

Lazy100-Auto

Installation

  1. Run this command to install required modules: pip install -r requirements.txt

  2. Put Lazy100.py in your 100DaysOfX directory.

  3. Add Lazy100.py to .gitignore (optional)

Create your Twitter app

This repo uses tweepy to interact with Twitter. To use it, you will need to create a new Twitter app and insert those credentials into Lazy100.py.

  1. Log into twitter
  2. Browse to https://apps.twitter.com/
  3. Click the Create New App button and define your new app. Here are some example values:
    • Name: Lazy100 - <your name>
    • Description: I'm Lazy
    • Website: <link to your repo>
    • Callback URLs: `` <= blank
  4. Check the Developer Agreement and click the Create your Twitter application button.
  5. In the application details page, Select the "Keys and Access Tokens" tab.
  6. Under "Your Access Token", click the Create my access token button.

See the tweepy tutorial for more information, if needed.

Insert your credentials

Open Lazy100.py, search for following lines and insert your credentials:

##############################################################
link_to_repo = '' # Set your github repo name

## Check README.md to learn how to acquire your Twitter keys
consumer_key = '' # Put your twitter consumer key
consumer_secret = '' # Put your twitter consumer secret
access_token = '' # Put your twitter access token
access_token_secret = '' # Put your twitter access token secret
###############################################################

Running

Execute in either ways:
- Automatic: python Lazy100.py
- Manual: python Lazy100.py -c="Your git commit message" -t="Your tweet message"

NOTE 1: If $ git push asks for both username & password every time then, check out this tutorial.
NOTE 2: If you are using automatic way then, your progress must be saved in a directory named in this form: Day. LessonName.
Example: 1. Linear Regression

About

A CLI to automate #100DaysOfX Challenges 🤖

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages