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 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 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.dev2.tar.gz (15.5 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.dev2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swagsocialbots-1.0.0.dev2.tar.gz
  • Upload date:
  • Size: 15.5 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.dev2.tar.gz
Algorithm Hash digest
SHA256 03eb28901d88ae87cffd4730c37310363b8ea86f824a57504b3151358c016334
MD5 757c312b246d67bc830a39bb79467cbc
BLAKE2b-256 6ff8fd0df1b7cada7fc84e33ffbda1249ff17886f518063258abe301723d74ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swagsocialbots-1.0.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 eafebae3e9cc11996708053373e61665884c88753e2acf81cbc30aa470f7dd2d
MD5 5d2e121dd4bb11c1c6bdb9947f530c18
BLAKE2b-256 fd479316f49fb4efb945b700b5fe1ac5179bc4602d279c117b27d83653f52892

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