Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

swagsocialbots

Now on PyPI: https://pypi.org/project/swagsocialbots/

Python module to make bots in swagsocial with swagsocial.py

Created by maxie!

Getting your API key

Log into your desired swagsocial account and go to Settings --> API, or click this link

If you would like to grant manage post permissions, which includes making posts and replies. It also allows deleting posts and replies, so be careful!

examples

from swagsocialbots import SwagBot
import time

bot = SwagBot()

@bot.on_mention() # will reply to a post the bot is tagged on
def on_mention(post):
    bot.reply(post.id, f"Hello, @{post.author.username}")

# will do anything in a forever loop, useful for bots that
# post something every N amount of time
@bot.forever_loop()
def forever():
    bot.create_post("meow")
    time.sleep(3600) # bot will post "meow" every 1 hour

bot.run("api key")

Download files

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

Source Distribution

swagsocialbots-1.0.0.dev3.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

swagsocialbots-1.0.0.dev3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file swagsocialbots-1.0.0.dev3.tar.gz.

File metadata

  • Download URL: swagsocialbots-1.0.0.dev3.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for swagsocialbots-1.0.0.dev3.tar.gz
Algorithm Hash digest
SHA256 c4205352fb1c4feef5e8a44987ef12e780a88ff5fe15cc21ccb3e160fadbfa77
MD5 8c95b4b390e96fa0517cc67acec8edc3
BLAKE2b-256 7937d105958661a3866bc49a1a2862a1cfe406bff397ccd98c4b93701feda5b9

See more details on using hashes here.

File details

Details for the file swagsocialbots-1.0.0.dev3-py3-none-any.whl.

File metadata

File hashes

Hashes for swagsocialbots-1.0.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 417e08bc95661764804240c1afaea03fee6da127fd34d6d823b76f8942e7d6f4
MD5 15609a5eb457f1d6932d5bdaee49b4dd
BLAKE2b-256 18c809ad2ef42aaac6808e8b42cbc853747d8e79315c3d4fd6aa03065b3ab962

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 Sentry Error logging StatusPage Status page