Have you ever wanted to read the entire blog of a particular author? It's actually not that easy with the current tools. You can scroll and scroll, but that's not a very fun experience.
This script allows you to output an index of an author's blog by querying HiveSQL, optionally limited to a year at a time. Then, you can save the output and view the file with a markdown reader or open it in hackmd.
Install Ruby
https://www.ruby-lang.org/en/documentation/installation/
Recommended version: ruby-2.7
Get this code
gem install bundler
git clone https://gist.github.com/398a215668c1fd3e1ae7e7a86ba85e53.git query_blog
cd query_blog
bundle install
Setup HiveSQL
Register here: https://hivesql.io/registration/
Edit authorize_hive_sql.sh
and provide your credentials.
source authorize_hive_sql.sh
ruby query_blog.rb inertia
Or you can provide a year to focus on, which is useful for prolific bloggers:
ruby query_blog.rb arcange 2018
You can also redirect the output to a file:
ruby query_blog.rb dan > dan.md
open dan.md
Get in touch!
If you're using Query Blog, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on Hive.
License
I don't believe in intellectual "property". If you do, consider Query Blog as licensed under a Creative Commons License.
This might be exactly the tool I need to simplify my personal post archive project.
I tend to favor the BipCot license personally.
The bundle install command isn't working. I am using Raspberry Pi, and still a terminal n00b, so it could be user error. It doesn't recognize the command after successfully performing the prior steps.
I have a similar tool https://hive-export.blokz.io/ Source here: https://github.com/blokz/hive-downloader
It might work for your needs. Downloads all posts to .md files and zips em up for ya into a single file.zip
Nice!
I may have skipped a step. Try installing bundler:
Yup. That mostly fixed it. I seem to need to also update Ruby.
Hmm, I might need to specify a minimum ruby version, then.
Yay! I am a software tester now!
Wow this sounds super useful!
Thanks. I know some good authors here on Hive, but the best authors also seem to have tons of content, making it hard as heckers to find anything in particular.
This should simplify things.
Congratulations @inertia! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):
Your next target is to reach 37000 upvotes.
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
Check out the last post from @hivebuzz: