Skip to main content

tetris is a tool for identifying social media trends

Project description

Tetris

Tetris

Tetris is a tool for identifying latest trends from news and social media to assist in marketing.

Installation

git clone https://github.com/muqsitnawaz/tetris.git
cd tetris
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

You can download memes from Reddit using the reddit command. The tool supports both local downloads and uploads to MinIO storage.

Basic Usage

python -m tetris reddit --subreddits memes dankmemes

Advanced Options

  • --subreddits: Specify one or more subreddits (default: None)
  • --limit: Number of top posts to fetch (default: 10 per subreddit)
  • --span: Time span for top posts (default: day)
  • --download: Local directory to save memes (default: None)
  • --upload: S3 bucket name for uploading (default: None)

Examples

Download memes to a custom directory:

python -m tetris reddit --subreddits "memes,dankmemes" --limit 20 --download custom/path/memes

Upload memes to a specific MinIO bucket:

python -m tetris reddit --subreddits "memes,dankmemes" --limit 20 --upload custom-bucket

Both download and upload:

python -m tetris reddit --subreddits "memes,dankmemes" --limit 20 --download local/memes --upload memes-bucket

License

All rights reserved (c) 2024 Zeff Muks

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

zf_tetris-2.1.0.tar.gz (20.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zf_tetris-2.1.0-py3-none-any.whl (20.8 MB view details)

Uploaded Python 3

File details

Details for the file zf_tetris-2.1.0.tar.gz.

File metadata

  • Download URL: zf_tetris-2.1.0.tar.gz
  • Upload date:
  • Size: 20.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for zf_tetris-2.1.0.tar.gz
Algorithm Hash digest
SHA256 82b916de4f51a99187339be53b4bba4f0beb1417b812aec4bbd76d67a6eba73d
MD5 fbc615f70eb943d143eccd8bb2762896
BLAKE2b-256 19fc319b937cf102407d365df539237074ba2a61d243e88ed2ea1c9612b92e5b

See more details on using hashes here.

File details

Details for the file zf_tetris-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: zf_tetris-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for zf_tetris-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 391aaf817f684a7491518c193115df22453103983894872dbf7742a1378bb8ce
MD5 608cc4ce7e78199c764190e601dd5210
BLAKE2b-256 6d30f04247a8f59698fc0911b8239a344db0ecf57394a5e242a8286c521896cd

See more details on using hashes here.

Supported by

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