Sort:  

I like this idea, @holger80!

What would be a nice addition is maybe for the script to attempt to save local copies of all images used in the blog as well. So basically saving a backup of all markdown and images from a given Steem blog.

I've lost count of the number of image links I have used and last thing I would want to happen is the respective hosts serving up those images shutting down and then my blog being a graveyard of 'X' icons.

And, even if that does happen, with locally saved copies, we would be able to edit a good link back in no problem. :)

What do you think?

Posted using Partiko Android

Good idea, I will work on this.

FYI:

Due to default max_feed_size setting, get_blog only can return MAX 500 items for an author, So if an author has more than 500 articles, then the early article will can not be obtained by this method.

The history call would allow returning all posts from an account, but would take some more time to be finished.

Cool idea! You could use block_history(reblogs=False) to get whatever the account history api provides without having to care about the limit parameter or resteems.

Thanks, I will try this.

@holger80 I get the following when I try to run (I did pip3 -U beem):
randy@apollo:~/beemcode$ python3 save_post_as_md.py mytechtrail .
Traceback (most recent call last):
File "save_post_as_md.py", line 17, in
comment = Comment(authorperm, steem_instance=stm)
File "/home/randy/.local/lib/python3.6/site-packages/beem/comment.py", line 58, in init
[author, permlink] = resolve_authorperm(authorperm)
File "/home/randy/.local/lib/python3.6/site-packages/beem/utils.py", line 159, in resolve_authorperm
raise ValueError("Invalid identifier")
ValueError: Invalid identifier

Any ideas?
Is this the correct place to ask for help?

You mixed up both scripts.
The script save_post_as_md.py is for saving one post. You have to copy the first one in my post.

Oops, thanks for the quick response and catching my error.

Do you have a github repo for all these awesome python programs you are writing?

I have one 0.18$ upvote for comment writer :)
$rewarding bounty 100% 2days

Congratulations to the following winner(s) of the bounty (The upvote value is distributed to the winner(s) by setting beneficiaries for this comment):

The bounty is set. When the post is 2.00 days old, a comment is created and upvoted with a 100.00% vote from holger80. The beneficaries of this comment is distributed to all top-level comment authors of this post. The comments are weighted by the creator and other reader by their upvotes. When no comment is created or no comment is upvoted, no comment from rewarding is created.

This post has been just added as new item to timeline of beem on Steem Projects.

If you want to be notified about new updates from this project, register on Steem Projects and add beem to your favorite projects.

I will try to do as you suggest in your post for my blog, as I wanted to have a digest of my blog stored.
I just don’t have a clue how this markdown thing works. I can’t code, let alone, read code.
Wish me luck!

lovely, another great use case for your libs :)

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.245 which ranks you at #69 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 254 contributions, your post is ranked at #1. Congratulations!

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

Hi, @holger80!

You just got a 2.52% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 64303.16
ETH 3137.29
USDT 1.00
SBD 3.97