create account

Hivediff - an app to view the history of any hive post by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$142.33
Hivediff - an app to view the history of any hive post
Hivediff is a small python GUI that can be used to view the editing history of a post.

It uses the account history for searching all comment operations with the specified permlink. Based on the received patches, a change history is build and can be viewed.

![](https://images.hive.blog/DQmeGCaS5easHdaEopfDKYAw42yBFW59ydJAA9gFCbKrRiB/image)

In this example, it can be seen that there two changes were made to the original post.

Hivediff can now be used to see what was changed at the specific operation. On the left side, you see the state before the edit and on the right side, you see the state after the edit.

You can select the different edits by their time-stamp at the left side by clicking on an item in the tree view.

Hivediff was inspired by [pydiff](https://github.com/yebrahim/pydiff), which is the reason why it uses Tk.

## Installation
You need to clone the github repository:
```
git clone https://github.com/holgern/hivediff.git
```
and you need to install Tk and beem for python 3.


* For Ubuntu, you can install Tk by `sudo apt-get install python-tk`.
* For MacOS, Tk should be included.
* For windows, the easiest way is to use [anaconda](https://www.anaconda.com/products/individual) as it's includes Tk. 

beem can be installed by
```
pip install beem
```
or
```
conda install beem
```

## Usage
Hivediff can be started by (you may need to replace python by python3)
```
python .\hivediff.py
```
It is possible to set an authorperm link with `--authorperm`:

```
python .\hivediff.py --authorperm @holger80/update-for-beem-support-for-ledger-nano-sx-has-been-added
```
It is also possible to set an authorperm via a dialog at File/View Post history.

### View diff between a markdown file and the corresponding Hive version
Hivediff can also be used to check the difference between an edited markdown file with YAML header to the currently broadcasted post body.

Let's assume, I want to edit my last post. At first, I can download the post as markdown file with:
```
beempy download -a holger80 -s update-for-beem-support-for-ledger-nano-sx-has-been-added
```
Then I'm editing the file and save it.
I can now check my changes with
```
python hivediff.py --file 2020-05-12T19-23-15_update-for-beem-support-for-ledger-nano-sx-has-been-added.md
```
It is also possible to load the file in the app. Just click on the File menu and click compare Markdown file. 

This command let Hivediff load the markdown file and extract the permlink from the YAML header.

![](https://images.hive.blog/DQmdKzzTmBdCucmtd1ux7NZynH3aDBDLMg4vYXhTuR6ks6D/image)

On the left side, the post body is shown and on the right side my locally stored markdown file. I can see that I added an `s` to `key`.

I can now broadcast the changes with

```
beempy post 2020-05-12T19-23-15_update-for-beem-support-for-ledger-nano-sx-has-been-added.md
```

### Reload
You can reload with strg+r, or by click on Reload in the menu.
It is also possible to search a string in your document (strg+f).


### Feedback
Do you think that Hivediff is a useful application? Should I invest more work in it? Maybe create an installer and a standalone version?

Maybe add the possibility to edit the content, revert changes, and finally broadcast the modified content?
___

*If you like what I do, consider casting a vote for me as witness on [Hivesigner](https://hivesigner.com/sign/account-witness-vote?witness=holger80&approve=1) or on [PeakD](https://peakd.com/witnesses)*

πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 529 others
πŸ‘Ž  
properties (23)
authorholger80
permlinkhivediff---an-app-to-view-the-history-of-any-hive-post
categoryhive-139531
json_metadata"{"community": "hive-139531", "app": "beempy/0.23.10", "tags": ["development", "diff", "python", "beem"], "canonical_url": "https://hive.blog/hive-139531/@holger80/hivediff---an-app-to-view-the-history-of-any-hive-post"}"
created2020-05-16 19:42:06
last_update2020-05-22 21:54:51
depth0
children18
last_payout2020-05-23 19:42:06
cashout_time1969-12-31 23:59:59
total_payout_value76.686 HBD
curator_payout_value65.644 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,456
author_reputation358,857,509,568,825
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,410,933
net_rshares254,430,713,510,910
author_curate_reward""
vote details (594)
@aljif7 ·
Very interesting way to know the history of a postπŸ‘
properties (22)
authoraljif7
permlinkqahe4d
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-17 15:09:51
last_update2020-05-17 15:09:51
depth1
children0
last_payout2020-05-24 15:09:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length51
author_reputation100,366,546,386,047
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,426,099
net_rshares0
@angel33 ·
Great work
properties (22)
authorangel33
permlinkre-holger80-2020517t15839433z
categoryhive-139531
json_metadata{"tags":["development","diff","python","beem"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-05-17 09:38:06
last_update2020-05-17 09:38:06
depth1
children0
last_payout2020-05-24 09:38:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation40,716,090,911
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,421,436
net_rshares0
@arynews195 ·
That's a great effort
πŸ‘Ž  
properties (23)
authorarynews195
permlinkre-holger80-2020517t62117513z
categoryhive-139531
json_metadata{"tags":["development","diff","python","beem"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-05-17 01:21:15
last_update2020-05-17 01:21:15
depth1
children0
last_payout2020-05-24 01:21:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation90,627,758,449
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,416,015
net_rshares-12,457,140,172
author_curate_reward""
vote details (1)
@codingdefined ·
$0.06
And thats a great little application to have, awesome work.
πŸ‘  
πŸ‘Ž  
properties (23)
authorcodingdefined
permlinkre-holger80-2020517t7915465z
categoryhive-139531
json_metadata{"tags":["development","diff","python","beem"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-05-17 01:39:15
last_update2020-05-17 01:39:15
depth1
children0
last_payout2020-05-24 01:39:15
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.031 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation533,146,249,582,530
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,416,205
net_rshares200,012,892,221
author_curate_reward""
vote details (2)
@gitplait ·
Another great one here. This is definitely useful for Hivers since it provides more value. As always, we appreciate your work.  And, this post will be featured in our Gitplaite-elites today. 

<sup>You are an elite.</sup>
properties (22)
authorgitplait
permlinkqairuz
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-18 09:04:12
last_update2020-05-18 09:04:12
depth1
children0
last_payout2020-05-25 09:04:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length221
author_reputation911,220,543,569
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,442,359
net_rshares0
@hatoto ·
$0.08
Justin Sun wΓΌrde diese App nicht gefallen πŸ˜‚
πŸ‘  , ,
πŸ‘Ž  
properties (23)
authorhatoto
permlinkre-holger80-qafxe2
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-16 20:10:51
last_update2020-05-16 20:10:51
depth1
children0
last_payout2020-05-23 20:10:51
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.039 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length43
author_reputation100,393,544,035,628
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,411,439
net_rshares252,120,056,981
author_curate_reward""
vote details (4)
@huaren.news ·
properties (23)
authorhuaren.news
permlinkqah08w
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-17 10:10:09
last_update2020-05-17 10:10:09
depth1
children0
last_payout2020-05-24 10:10:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation-3,379,659,091,653
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,421,883
net_rshares-5,205,455,931,680
author_curate_reward""
vote details (12)
@jager567 ·
$0.06
I've been looking for a tool like this from the first time I saw an edited post! Thanks for creating it!
πŸ‘  
πŸ‘Ž  
properties (23)
authorjager567
permlinkre-holger80-qag83l
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-17 00:02:06
last_update2020-05-17 00:02:06
depth1
children0
last_payout2020-05-24 00:02:06
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.030 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation1,419,612,530,148
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,415,022
net_rshares200,210,304,389
author_curate_reward""
vote details (2)
@kennyroy ·
I'm not sure if that is needed? Looks like not so important for me or am I just innocent for this apps developing?
properties (22)
authorkennyroy
permlinkqafysh
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-16 20:41:06
last_update2020-05-16 20:41:06
depth1
children0
last_payout2020-05-23 20:41:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation64,694,645,595,688
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,411,964
net_rshares0
@kingscrown ·
that is good job man!
πŸ‘  
properties (23)
authorkingscrown
permlinkre-holger80-2020517t52953503z
categoryhive-139531
json_metadata{"tags":["development","diff","python","beem"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"}
created2020-05-17 03:29:51
last_update2020-05-17 03:29:51
depth1
children0
last_payout2020-05-24 03:29:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation2,115,794,527,995,802
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,417,438
net_rshares23,821,791,025
author_curate_reward""
vote details (1)
@marian0 ·
Very useful. Congratulations for making this amazing tool. Keep up the good work.
properties (22)
authormarian0
permlinkqahag8
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-17 13:50:36
last_update2020-05-17 13:50:36
depth1
children0
last_payout2020-05-24 13:50:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation33,681,337,435,997
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,424,761
net_rshares0
@maxuvv ·
Hi @holger80, you have received a small bonus upvote from MAXUV.
This is to inform you that you now have [new MPATH tokens](https://hive-engine.com/?p=market&t=MPATH) in your Hive-Engine wallet.
Please [read this post](https://peakd.com/hive-167922/@mpath/mpath-weekly-report-and-token-distribution-26-april-2020) for more information.
Thanks for being a member of both MAXUV *and* MPATH!
properties (22)
authormaxuvv
permlinkre-hivediff---an-app-to-view-the-history-of-any-hive-post-20200516t194408z
categoryhive-139531
json_metadata"{"app": "rewarding/0.1.0"}"
created2020-05-16 19:44:09
last_update2020-05-16 19:44:09
depth1
children0
last_payout2020-05-23 19:44:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length393
author_reputation32,074,948,443
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,410,962
net_rshares0
@maxwellelisha19 ·
This is awesome and incredible, wow...hive is ready to take over with this update..nice one
properties (22)
authormaxwellelisha19
permlinkqah9z4
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2020-05-17 13:40:57
last_update2020-05-17 13:40:57
depth1
children0
last_payout2020-05-24 13:40:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation-606,702,104,679
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,424,625
net_rshares0
@revisesociology ·
@tipu curate
properties (22)
authorrevisesociology
permlinkre-holger80-qafwa2
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-16 19:46:51
last_update2020-05-16 19:46:51
depth1
children0
last_payout2020-05-23 19:46:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation2,295,672,943,198,012
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,411,019
net_rshares0
@roomservice ·
Very cool!
Looking at this app, brings up one question in my mind:
Do you think HIVE blockchain would be able to support GIT repositories?

Wanna build GitHIVE?
πŸ‘  
πŸ‘Ž  ,
properties (23)
authorroomservice
permlinkre-holger80-qafww0
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-16 20:00:00
last_update2020-05-16 20:00:00
depth1
children2
last_payout2020-05-23 20:00:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length160
author_reputation11,573,428,661,334
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,411,265
net_rshares-1,098,747,655,677
author_curate_reward""
vote details (3)
@holger80 ·
How could this work? When I push a new post version to my git, a script automatically broadcasts a comment operation to Hive with the changes? What would be the benefits? Maybe changing a footer on all my posts?
πŸ‘  , , ,
properties (23)
authorholger80
permlinkre-roomservice-qafyka
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-16 20:36:15
last_update2020-05-16 20:36:15
depth2
children1
last_payout2020-05-23 20:36:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length211
author_reputation358,857,509,568,825
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,411,872
net_rshares43,668,283,775
author_curate_reward""
vote details (4)
@roomservice ·
My first thought on this was that on-chain comments could represent a file of repository. As there is a size limit of 64kb maybe it's a bad idea ^^
properties (22)
authorroomservice
permlinkre-holger80-qafz3u
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-16 20:47:54
last_update2020-05-16 20:47:54
depth3
children0
last_payout2020-05-23 20:47:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length148
author_reputation11,573,428,661,334
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,412,118
net_rshares0
@themarkymark · (edited)
There is another option available as well from @drakos.  I don't think it is very well known though.

[Hive Scribe](http://hivekings.com/scribe)

I use this from time to time when researching abuse. 
πŸ‘  ,
πŸ‘Ž  , ,
properties (23)
authorthemarkymark
permlinkre-holger80-qaghea
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.05.3"}
created2020-05-17 03:22:57
last_update2020-05-17 03:23:30
depth1
children0
last_payout2020-05-24 03:22:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length199
author_reputation1,779,924,755,374,930
root_title"Hivediff - an app to view the history of any hive post"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,417,343
net_rshares-649,210,238,509
author_curate_reward""
vote details (5)