Skip to content

Commit

Permalink
python
Browse files Browse the repository at this point in the history
  • Loading branch information
buerviper committed Jul 17, 2023
1 parent ce904c9 commit 50c25fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
File renamed without changes.
6 changes: 5 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from mastodon import Mastodon
import os, random


# Create an instance of the Mastodon class
mastodon = Mastodon(
Expand All @@ -7,4 +9,6 @@
)

# Post a new status update
mastodon.status_post('Testititest')
image = random.choice([x for x in os.listdir(".\images") if os.path.isfile(os.path.join(".\images", x))])

Mastodon.media_post(image, mime_type=None, description=None, focus=None, file_name=None, thumbnail=None, thumbnail_mime_type=None, synchronous=False)[source]

0 comments on commit 50c25fd

Please sign in to comment.