Skip to main content

Command line program to play random animal videos.

Project description

Cheermeup

Command line program that plays random animal from your favorite animal subreddits!

Standalone executable (windows only)

As a commandline app (available on windows and unix)

Created by u/andohuman | @andohuman

1. Getting started

This app works by scraping videos from a some of the popular animal subreddits.

If you want to run the standalone binary (windows only), download it from here.

Else if you want to install as a python module and mess with the code, stick around.

2. Installation

Before we proceed with the actual installation, consider installing this package in a virtual python environment.

Installing venv

Install the virtualenv python package with the following command :- pip3 install virtualenv

You can now go ahead and create a virtual environment with the following command :- python3 -m venv YOUR_ENV_NAME/

Now activate the virtual environment you just created :-

On windows

YOUR_ENV_NAME\Scripts\activate

On unix systems

source YOUR_ENV_NAME/bin/activate

You can now proceed with the installation of the package

Installing using pip

You can use the python package manager pip to install this package, although it is recommended that you install the package from source for the latest updates.

Run pip3 install cheermeup

Installing from source (Recommended)

  1. Clone this repository git clone https://github.com/andohuman/cheermeup.git

If you're on windows you can download the zip from here and extract the archive.

  1. cd into the folder and install the package by executing

cd cheermeup

pip3 install .

Note: If you're installing on linux without virtualenv you might have to add /home/{YOUR_USERNAME}/.local/bin/ to your $PATH.

  • Run the app by executing cheermeup.

Note: When you run the program for the first time (of the day by default) it may take a couple of seconds, depending on your internet connection and speed to fetch the links and cache them.

If you want to scrape from your own subreddits you can do so with the following argument cheermeup --subreddits SUBREDDIT_NAME SUBREDDIT_NAME SUBREDDIT_NAME ...

Execute cheermeup --help for more options

2.1 (optional | windows only) Instructions to build standalone executable

We would need to install the pyinstaller python package which lets us build an executable from a given python source.

Run pip3 install pyinstaller

cd into the src directory and execute pyinstaller -w -F cheermeup.py

The -w flag supresses terminal window and the -F makes pyinstaller procduces only one single executable file You will find the newly built binary cheermeup.exe in the dist folder.

3. Improvements (help needed)

  1. Please note that this is an alpha project I put together in a couple of hours and it might not exactly be stable all the time. Feel free to raise an issue and I'll try and look into it

  2. I also want to release linux and macos binaries but pyinstaller and cx_freeze won't play well with cv2, which is a dependancy and I also don't have a mac to test this tool on. If anyone would like to help/contribute (in this regard or any other bugs you find) please issue a pull request.

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

cheermeup-1.0.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

cheermeup-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file cheermeup-1.0.0.tar.gz.

File metadata

  • Download URL: cheermeup-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8

File hashes

Hashes for cheermeup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 57fdf48d8e665b91d143d0120ff9b6ee10d60ec6a4788d26b3f3b3806c006ed3
MD5 cb1f53d838795aff1f7a70b99066e480
BLAKE2b-256 15f7bbb7089053ea7001f1c00a51528fb8acba5f5f05c5e41b0aac5f7bf78150

See more details on using hashes here.

File details

Details for the file cheermeup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cheermeup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8

File hashes

Hashes for cheermeup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 772158a26d4d63a9fe1f7ea9d1de22fbdc7cc03bfcaaf6b8be8346b44c6b5257
MD5 ec8b8203a26354110922b0242b120207
BLAKE2b-256 db5c32897da58ac0af1e76f86b961443bb6bb3070169fc5ef837ab2cfab402d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page