Skip to main content
Pre-release

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

Swagsocial.py

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

Python module to make bots in swagsocial with (https://pypi.org/project/swagsocial-py)[swagsocial.py]

Created by maxie!

Getting your API key

Log into your desired swagsocial account and go to Settings --> API, or click this link: https://swag.nomaakip.xyz/settings/api

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 t o 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.dev1.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.dev1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swagsocialbots-1.0.0.dev1.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.dev1.tar.gz
Algorithm Hash digest
SHA256 180eda4c3b158fa0f0fb39aa218067dfe49cf154f70ecb6432184037dc87b4c0
MD5 548658a53595ad8e1cb2ab399b789f0b
BLAKE2b-256 8194957e50b465e341ad914ff2b030ff7fe971231ff531b3188e6e11b44f6e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swagsocialbots-1.0.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe34b506b032e949b528ec77bf329ff76e48b9c3a85119beb46cc91669cf3f98
MD5 795000a60f94eb7f0426570037b10b37
BLAKE2b-256 2061f57941d41fe625e260e2cca7ac91491b99c6e8b1a78eba4d647ba4325eea

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