humitos / your-reminder

Schedule some tweets to be post for you
GNU General Public License v2.0
1 stars 0 forks source link

YourReminder

Installation

pip install -r requirements.txt

Then run:

python scheduler.py --get-twitter-credentials

to authorize the YourReminder App into your Twitter account. Read and Write permissions are needed.

Tweet other stuff or adding more quotes

Copy tweets.yaml.template to tweets.yaml and edit it by respecting the structure of categories/subcategories/schedule period and make sure each tweet is no longer than 140 characters.

Example estructure of .yaml file:

Category A:

  Subcategory AA:
    once:
      - content: "I'm using YourReminder to tweet this."
        date: 2015-11-10 22:15:30 GMT-5

  Subcategory AB:
    monthly:
      - content: "This tweet will be ran once each 2 months"
      - content: "This tweet will be ran once each 2 months"

Category B:

  Subcategory BA:
    daily:
      - content: "This tweet will be posted once a day"
        strict: true

      # "strict: true" do not count when calculate the period
      - content: "Once each 2 days"
      - content: "Once each 2 days"

    weekly:
      - content: "This tweet will be posted once each two week starting on start_date and finishing on end_date"
        start_date: 2016-01-16 10:00:00
        end_date: 2016-03-01 00:00:00

      - content: "This tweet will be posted once each two week with the media images"
        media: [p1.jpg, p2.jpg, p3.jpg, p4.jpg]  # up to 4 images are allowed by Twitter

See tweets.yaml.template for full documentation about this file.

Run it!

python scheduler.py

As a daemon

python scheduler.py --daemon

Enjoy your life being offline from Twitter (AFK) and keeping your followers happy!