Giter VIP home page Giter VIP logo

blog-to-twitter's Introduction

Blog-to-twitter

This is a simple script to check RSS from a blog and publish new posts to twitter.

Configuration

Copy config.yaml.dist to config.yml

cp config.yaml.dist config.yml

Replace placeholders with your data. They should be self-explanatory, but you can read some explanations in a moment.

twitter:
    consumer_key: twitter_api_consumer_key
    consumer_secret: twitter_api_consumer_secret
    access_token: twitter_api_access_token
    access_token_secret: twitter_api_access_token_secret

feed:
    name: name_of_the_site
    uri: absolute_uri_to_feed
    days: 1

twitter.*: credentials for your registered app in twitter.

feed.name: the name of the site you are publishing. feed.uri: absolute uri of the feed. For example: 'https://franiglesias.github.io/feed.xml' feed.days: number of days before today since you want to retrieve posts from the RSS. Typical setup is 1, allowing the announcement of post published the same day the script runs.

The script will publish all posts found.

Basic usage

Run:

./blog-to-twitter

Use another config file:

./blog-to-twitter -c path/to/config.yml

Dry run. Don't publish tweets

./blog-to-twitter --dry

Overriding configuration

You can override some data in configuration by passing command line options.

--days: overrides the number of days since new posts are selected

blog-to-twitter's People

Contributors

franiglesias avatar

Watchers

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