Just Dusting off the old beempy autobot, testing out some auto posting!!
This post created with beem by @beembot.Here is a random screenshot from my computer generated with beempy! image:https://cdn.steemitimages.com/DQmbibgTS5MWR7a2GT77xJ4qPSV1A5ojJNEiGtUYrom8eEt/random_filename
Well that worked great for my first test post! Guess beempy decided to share an old mac-ports log file of mine IO think?????!!! lol
I added a random image link generator to my beempy post generator file. It is sick, it just pulls up a random image from my user's home directory! (Hopefully nothing too revealing, better double check my drive because I already have tons of screenshots in there) Next I just need to add a cronjob so I can schedule mucho posts??
It did release one of my shady random screenshots! Geez, how dangerous! I will have to take a look at formatting in the A.M.! Not sure why just a link shows up, maybe need a space after the : ?
Here is my actual source code for this post.
if name == "main":
#!/usr/bin/python
from beem.imageuploader import ImageUploader
from beem import Steem
import random, os
stm = Steem()
author = "coininstant"
path = "/Users/nick"
random_filename = random.choice([
x for x in os.listdir(path)
if os.path.isfile(os.path.join(path, x))
])
image_path = random_filename
image_uploader = ImageUploader(steem_instance=stm)
img_link = image_uploader.upload(image_path, author, image_name="random_filename")title = "Beem Bot Post by @coininstant, Testing Random Image?!!"
body = "Just Dusting off the old autobot, testing out some auto posting!! This post created with beem by @beembot."\
"Here is a screenshot of claiming rewards with beempy image:"\
"%s" % img_link["url"]
parse_body = True
self_vote = False
tags = ["python", "test", "this", "is", "just", "a", "post"]
stm.post(title, body, author=author, tags=tags, parse_body=parse_body, self_vote=self_vote)
Follow @coininstant for more!