Skip to main content

twitter-banner-switcher

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: "Twitter consumer key"
consumer_secret: "Twitter consumer secret"
access_token: "Twitter access token"
access_token_secret: "Twitter access token secret"

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

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.

Metadata

Release files for twitter-banner-switcher 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twitter-banner-switcher 0.1.0
File Size Uploaded
twitter-banner-switcher-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twitter-banner-switcher 0.1.0
File Interpreter ABI Platform
twitter_banner_switcher-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / twitter-banner-switcher-0.1.0.tar.gz

Download URL twitter-banner-switcher-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b8bd27f38c7450d4960ab5920104e11c07eca66e1bdcdc891da114187ba149c5
BLAKE2b-256 checksum
How to use checksums
d56c9e9eedbf9f9b5725aa0fbca2ac38863f10b186b871bf5ecf93f4ad65116a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / twitter_banner_switcher-0.1.0-py3-none-any.whl

Download URL twitter_banner_switcher-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5bc4f92a1b15d604ea81d26177e829eb4c54dc47f2261b2c9746a4df78032e53
BLAKE2b-256 checksum
How to use checksums
bfcec8fc346d4e65783bbcbfcad1959cf1818f10c2ae9b22853b401d1c2c1875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page