Beempy post will create a new post, when changing the title in the yaml header, will fix this soon.

in LeoFinance4 years ago (edited)

This post was created by mistake by changing the title from my previous post, As I'm not able to delete the post, I decided to write about my mistake and how to improve beempy:


beem-logo

I learned today that changing the title confuses beempy.

Normally the following is my posting workflow:

  • beempy createpost my_new_post.md
  • Open the markdown file with visual studio code
  • broadcast the new post with beempy post my_new_post.md

The following screenshot shows visual studio code:

image.png
I'm using the following extensions:

image.png

Today, I changed the title and thought that I everything will work, but instead a new post (this one) was broadcasted.

So I will update beem so that beempy post will update the yaml header on my_new_post.md and write the correct permlink into it.

By the way does anybody use beempy ? Do you find beempy useful for writing posts?
Please let me know, if I can improve things :)

Sort:  

I may need to look into creating automated posts, but I'll do it on another account. I've not posted with beempy yet. Just using beem for collecting some stats. I need to play around more with that. I'm putting my scripts on Github. It would be useful to collect more examples for others to learn from.

I like to write my markdown posts with an external editor. visual studio code and typora are great for this.

Beempy post is very comfortable as it broadcast the markdown to HIVE and also uploads all images automatically.
It works quite well for me (besides the fiasko today with renaming the title of my post).

Great work!

It looks like someone on EOS has been cooking the books.

Blocktivity should remove these eosio.token transactions unless eosio.token can demonstrate that they are real.

Congratulations @holger80! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You published more than 350 posts. Your next target is to reach 400 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @hivebuzz:

HiveFest⁵ feedback and contest results
It's today! Do not miss the opening of HiveFest⁵

Hello @holger80 ! I was wondering whether it is possible to post as another account (that had given you posting authority)

Congratulations @holger80! You received a personal badge!

Happy Hive Birthday! You are on the Hive blockchain for 3 years!

You can view your badges on your board and compare yourself to others in the Ranking

Do not miss the last post from @hivebuzz:

First Hive Power Up Day of 2021 - Get a Hive Power delegation
Offer a gift to your friends for Christmas

Hello,

I'm encountering an error when calling blog.get_rewards() and blog.get_author_rewards() using version = '0.24.26', below would be the trace back.

Traceback (most recent call last):
  File "[path-removed]\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
    self.run()
  File "[path-removed]\Python\Python39\lib\threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "[path-removed].py", line 83, in followers
    print(blog.get_curation_rewards())
  File "[path-removed]\lib\site-packages\beem\comment.py", line 569, in get_curation_rewards
    total_vote_weight += vote["weight"]
TypeError: unsupported operand type(s) for +=: 'int' and 'str'

I tried a workaround by casting vote["weight"] to int:

        total_vote_weight = 0
        for vote in active_votes_json_list:
            total_vote_weight += int(vote["weight"])