Skip to main content

Python script that sets your Twitter profile banner to a random image from a specified folder or a list of paths.

Project description

PyPI Version Python Versions License

Python (3) script that sets your Twitter profile banner to a random image from a specified folder or a list of paths.

Installation

With PyPI (recommended):

$ pip3 install twitter-banner-switcher

With git clone:

$ git clone https://github.com/Pythonity/twitter-banner-switcher
$ pip3 install -r twitter-banner-switcher/requirements.txt
$ cd twitter-banner-switcher/bin

Usage

$ twitter-banner-switcher -h
Usage: twitter-banner-switcher [OPTIONS]

  Set Twitter profile banner to a random image from a specified folder or a
  list of paths

Options:
  -c, --config-file FILENAME  Path to YAML config file (default: ~/.twitter-
                              banner-switcher.yml).
  -h, --help                  Show this message and exit.

Examples

Not much to show here - you can provide path to config file:

$ twitter-banner-switcher -c twitter-banner-switcher.yaml

or save it at ~/.twitter-banner-switcher.yaml and just run the damn thing:

$ twitter-banner-switcher

Example config file

$ cat twitter-banner-switcher.yaml
consumer_key: <s>"Twitter</s> <s>consumer</s> <s>key"</s>
consumer_secret: <s>"Twitter</s> <s>consumer</s> <s>secret"</s>
access_token: <s>"Twitter</s> <s>access</s> <s>token"</s>
access_token_secret: <s>"Twitter</s> <s>access</s> <s>token</s> <s>secret"</s>

banner_images:
    - <s>"/home/bender/Photos/Awesome</s> <s>Twitter</s> <s>Banners/"</s>
    - <s>"/home/bender/Downloaded/planet_express.png"</s>

Note: banner_images can be a path or a list of paths (to directories containing images or directly to image files). Recognized formats are gif, jpg, jpeg and png.

Contributions

Package source code is available at GitHub.

Feel free to use, ask, fork, star, report bugs, fix them, suggest enhancements and point out any mistakes.

Authors

Developed and maintained by Pythonity.

Written by Paweł Adamczak.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twitter-banner-switcher-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page