A configurable social media bot designed to automatically post quotes on various platforms.
Project description
# SocialMediaBot Social media bot fetches quotes from Gemini AI service & posts them (Twitter, WordPress, WhatsApp) with error handling. Runs in loop, checks for unique quotes & stores details in database. Functionality depends on configuration & external services.
A configurable social media bot designed to automatically post quotes on various platforms.
Setting Up: The bot loads instructions (configuration file) and prepares to record its actions (logging) and store quotes in a database.
Fetching Quotes: The bot retrieves quotes from an external service (likely a GenAI model) via a web request. It processes the response to extract the quote and speaker’s name, formatting the quote slightly.
Posting Capabilities: The bot can post on Twitter, WordPress, and WhatsApp. Twitter posts include a customizable prefix and suffix added to the quote. For WordPress, it can create new posts or update existing ones with the quote. WhatsApp functionality involves sending the quote as a message to a designated chat.
Running the Bot: The bot operates within a loop, attempting to post quotes a set number of times. In each loop, it generates a new quote, checks for uniqueness in the database, and if unique, posts it to the configured platforms. Details about each posted quote are stored in the database.
Error Handling: The bot manages errors, logging issues like exceeding Twitter’s character limit or problems with WordPress/WhatsApp.
Note: The specific functionalities depend on the configuration provided. External services like the quote provider and social media platforms can influence the bot’s behavior.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file SocialMediaBot-2.0-py3-none-any.whl
.
File metadata
- Download URL: SocialMediaBot-2.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90373ddcfbf71f11390579ce43d413552cfc619231dc8ecff8e7312a0c806762 |
|
MD5 | 793cbbb8fad3171b846d8df493f714cd |
|
BLAKE2b-256 | 7d3b3fc82fa445722348e3d48e3506d1e8093d1c95f5563aa87d7c658ab9d316 |
File details
Details for the file
socialmediabot-2.0.tar.gz
.File metadata
File hashes
287f8f648ab108ef5d25a92c2eae6d5ea28c196893ecbaa0cce4ca68d931cdbd
090bd60a19c840573c9a21b9c615264c
f915c57ce9e437db965e095d0088b3b252bce81d83ce404643af4eb5572dd755
See more details on using hashes here.