create account

How to run beem/beempy in your browser with repl.it by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 · (edited)
$175.22
How to run beem/beempy in your browser with repl.it
It is now possible to run beem/beempy directly in your browser without installing python or beem. If you always wanted to play with beem/beempy but never managed it to install it then this is your chance. You can now try beem/beempy directly in your browser.

You should never enter any private keys into repl.it, so this can be used for scripts or beempy commands that receives data from the HIVE blockchain.

## How to run beempy in your browser
Go to the [beem github](https://github.com/holgern/beem) and click on the ![run with repl.it](https://images.hive.blog/DQmdA9UgmyCrZ9yXH5JM12iGVz6J3dUk1E95ChysPbdzUkw/run%20with%20repl.it) image.

You can also directly click on this link [run beem/beempy with repl.it](https://repl.it/github/holgern/beem).

Now you have to wait until it finished cloning the repo:

![Cloning beem](https://images.hive.blog/DQmaCqD2Huz341c9dADxnqLLtxs4Y3i1Qwge2XJVk8cyHh5/Cloning%20beem)

If you click now on run, beem is installed and beempy is started. This needs some time. 

![Starting beempy](https://images.hive.blog/DQmbyKwVKmj1514dkd4UPNXF9DQQ5HVuasLMcC1EEcATbKX/Starting%20beempy)

You could also install and run it by entering:
```
python setup.py install
beempy
```
into the terminal.

You can now try different beempy commands.
For example
```
set default_account holger80
updatenodes
power
```
![Using beempy](https://images.hive.blog/DQmaNZTWHNHX8RNmEQ2AdJBP3b9rATmBTfbmunfivK3zwdt/Using%20beempy)

## Running a script in your browser
If not already installed, you need to install beem with
```
python setup.py install
```

I added a small example to the examples directory which can be used to learn more about your followers. You find the script [here](https://github.com/holgern/beem/blob/master/examples/check_followers.py).

The script can be started with two parameters. The first parameter is the account name and the second parameter is the number of the latest blogs that should be taken into account (must be <=100). It is a good idea to select the fastest node by `beempy updatenodes` first.
```
beempy updatenodes
python examples/check_followers holger80 20
```

![Run the command](https://images.hive.blog/DQmeg3VabkvrBduNXUSzaqVQWsegNiF4skia9Cs51w3HxpR/Run%20the%20command)

The script goes now through my last 20 posts and checks which vote and which reply was made by my followers. A ghost follower is someone who did not vote or left any comment on my posts but is active. Active means that the account had voted or wrote comments within the last 30 days.

![Results](https://images.hive.blog/DQmYeaPq8DikGZgFQhaBYMonZeLoxaA6uJZ6kgFymS41359/Results)


## Installing beem to a fresh repl.it
You can also create a fresh python repl.it by going to [python3 repl.it](https://repl.it/languages/python3).
beem can be installed by going to the package tab to the left and enter beem:
![](https://images.hive.blog/DQmYQXx1V1kPFddSzQqbkdvQNckcvnhKAuSy6D1Eqnku7jn/image)
It will be installed when you press the plus button.

To get started, you can add the following to the empty main.py:
```
from beem.account import Account
from beem import Hive

hive = Hive("https://api.hive.blog")

acc = Account("holger80", blockchain_instance=hive)
print(acc.vp)
```
It should look now:
![](https://images.hive.blog/DQmTLHX1tkm3wUiYb2ePrT1Mv6XovUzuagPnb2JrG9LC9QB/image)
and press run. You should see now my vote power.

___

Have fun and remember not to enter your private keys into the repl.it terminal or your scripts stored at repl.it.
___

*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 735 others
👎  
properties (23)
authorholger80
permlinkhow-to-run-beembeempy-in-your-browser-with-repl-it
categoryhive-108365
json_metadata"{"canonical_url": "https://hive.blog/hive-108365/@holger80/how-to-run-beembeempy-in-your-browser-with-repl-it", "community": "hive-108365", "app": "beempy/0.23.12", "links": ["https://github.com/holgern/beem", "https://repl.it/github/holgern/beem", "https://images.hive.blog/DQmaNZTWHNHX8RNmEQ2AdJBP3b9rATmBTfbmunfivK3zwdt/Using%20beempy", "https://images.hive.blog/DQmbyKwVKmj1514dkd4UPNXF9DQQ5HVuasLMcC1EEcATbKX/Starting%20beempy", "https://images.hive.blog/DQmaCqD2Huz341c9dADxnqLLtxs4Y3i1Qwge2XJVk8cyHh5/Cloning%20beem", "https://images.hive.blog/DQmYeaPq8DikGZgFQhaBYMonZeLoxaA6uJZ6kgFymS41359/Results", "https://hivesigner.com/sign/account-witness-vote?witness=holger80&approve=1", "https://images.hive.blog/DQmdA9UgmyCrZ9yXH5JM12iGVz6J3dUk1E95ChysPbdzUkw/run%20with%20repl.it", "https://peakd.com/witnesses"], "tags": ["beem", "beempy", "replit", "python", "browser"]}"
created2020-06-04 23:22:24
last_update2020-06-05 07:10:12
depth0
children20
last_payout2020-06-11 23:22:24
cashout_time1969-12-31 23:59:59
total_payout_value95.498 HBD
curator_payout_value79.719 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,692
author_reputation358,857,509,568,825
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,778,409
net_rshares362,381,020,787,846
author_curate_reward""
vote details (800)
@aschatria ·
$0.05
I like all these new things but I would also appreciate more application for the mobile phones. Thank you for your hard work.
👍  
👎  
properties (23)
authoraschatria
permlinkre-holger80-202066t134459187z
categoryhive-108365
json_metadata{"tags":["beem","beempy","replit","python","browser"],"app":"esteem/2.2.5-mobile","format":"markdown+html","community":"hive-125125"}
created2020-06-06 11:45:00
last_update2020-06-06 11:45:00
depth1
children0
last_payout2020-06-13 11:45:00
cashout_time1969-12-31 23:59:59
total_payout_value0.025 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation39,132,042,091,697
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,804,060
net_rshares194,925,846,464
author_curate_reward""
vote details (2)
@chireerocks ·
@holger80, Just want to know if **Rewarding.app Tool** is live and running on the **Hive Blockchain** or not?

Have a great time ahead and stay blessed.
properties (22)
authorchireerocks
permlinkqblrox
categoryhive-108365
json_metadata{"users":["holger80"],"app":"hiveblog/0.1"}
created2020-06-08 10:27:03
last_update2020-06-08 10:27:03
depth1
children4
last_payout2020-06-15 10:27:03
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_length152
author_reputation327,821,690,945,691
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,841,753
net_rshares0
@botefarm ·
Are you still using it
properties (22)
authorbotefarm
permlinkqguwca
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-09-18 13:33:45
last_update2020-09-18 13:33:45
depth2
children3
last_payout2020-09-25 13:33:45
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_length22
author_reputation105,906,511,093,744
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,694,039
net_rshares0
@chireerocks ·
??
properties (22)
authorchireerocks
permlinkqgvhv7
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-09-18 21:18:48
last_update2020-09-18 21:18:48
depth3
children2
last_payout2020-09-25 21:18:48
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_length2
author_reputation327,821,690,945,691
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,700,814
net_rshares0
@chitty ·
$0.06
I have picked your post for my daily hive voting initiative, Keep it up and Hive On!!
👍  
properties (23)
authorchitty
permlinkre-how-to-run-beembeempy-in-your-browser-with-repl-it-20200605t000648
categoryhive-108365
json_metadata""
created2020-06-05 00:06:51
last_update2020-06-05 00:06:51
depth1
children0
last_payout2020-06-12 00:06:51
cashout_time1969-12-31 23:59:59
total_payout_value0.028 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length86
author_reputation86,901,300,608,582
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,778,977
net_rshares208,140,621,757
author_curate_reward""
vote details (1)
@codingdefined ·
$0.05
Wow, it's great to now and a great work
👍  
👎  
properties (23)
authorcodingdefined
permlinkqbhg38
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-06 02:25:57
last_update2020-06-06 02:25:57
depth1
children0
last_payout2020-06-13 02:25:57
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length39
author_reputation528,450,731,676,885
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,797,836
net_rshares195,118,107,329
author_curate_reward""
vote details (2)
@detlev ·
$0.05
damn cool...
and again a great job!
👍  
👎  
properties (23)
authordetlev
permlinkre-holger80-qbietd
categoryhive-108365
json_metadata{"tags":["hive-108365"],"app":"peakd/2020.05.5"}
created2020-06-06 14:56:12
last_update2020-06-06 14:56:12
depth1
children0
last_payout2020-06-13 14:56:12
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length35
author_reputation1,720,754,409,780,388
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,806,361
net_rshares194,541,901,324
author_curate_reward""
vote details (2)
@holger80 ·
$0.02
#posh
https://twitter.com/holger80_/status/1268823332402724866
👍  , , , ,
properties (23)
authorholger80
permlinkre-holger80-qbg2h0
categoryhive-108365
json_metadata{"tags":["hive-108365"],"app":"peakd/2020.05.5"}
created2020-06-05 08:34:18
last_update2020-06-05 08:34:18
depth1
children0
last_payout2020-06-12 08:34:18
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation358,857,509,568,825
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,783,993
net_rshares92,710,599,627
author_curate_reward""
vote details (5)
@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 (23)
authormaxuvv
permlinkre-how-to-run-beembeempy-in-your-browser-with-repl-it-20200604t232406z
categoryhive-108365
json_metadata"{"app": "rewarding/0.1.0"}"
created2020-06-04 23:24:06
last_update2020-06-04 23:24:06
depth1
children0
last_payout2020-06-11 23:24: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_length393
author_reputation32,074,948,443
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,778,443
net_rshares-3,403,296,346
author_curate_reward""
vote details (1)
@mediamysteries ·
$0.06
I'm guessing it must run on a Python virtual machine that's been compiled into WebAssembly, if it runs in the browser without needing to actually install it.
👍  
properties (23)
authormediamysteries
permlinkqbfnjn
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-05 03:11:48
last_update2020-06-05 03:11:48
depth1
children1
last_payout2020-06-12 03:11:48
cashout_time1969-12-31 23:59:59
total_payout_value0.028 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length157
author_reputation911,288,731,020
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,781,083
net_rshares207,958,480,651
author_curate_reward""
vote details (1)
@mtl1979 · (edited)
It doesn't actually run the whole operating system inside the browser... It's kind of shell session displayed on browser like when you connect to a virtual private server account without using external ssh application.

I did a simple test and got "242.126.223.35.bc.googleusercontent.com" as hostname.
properties (22)
authormtl1979
permlinkqbiqji
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-06 19:09:51
last_update2020-06-06 19:48:33
depth2
children0
last_payout2020-06-13 19: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_length302
author_reputation901,077,179,728
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,810,124
net_rshares0
@osakivolezka42 ·
Best signals, and trade bot! - https://kintum.io/
👍  
👎  , ,
properties (23)
authorosakivolezka42
permlinkqbie4f
categoryhive-108365
json_metadata{"links":["https://kintum.io/"],"app":"hiveblog/0.1"}
created2020-06-06 14:41:03
last_update2020-06-06 14:41:03
depth1
children0
last_payout2020-06-13 14:41:03
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_length49
author_reputation-526,183,582,894
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,806,154
net_rshares-3,350,335,154,377
author_curate_reward""
vote details (4)
@papilloncharity ·
Sent it to a Hive friend that knows about these things Lol.
I know about charity work, but Python sounds like a snake to me hahaha
Thank you.
👍  
properties (23)
authorpapilloncharity
permlinkqbg2z1
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-05 08:45:09
last_update2020-06-05 08:45:09
depth1
children0
last_payout2020-06-12 08:45: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_length141
author_reputation2,488,215,045,642,813
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,784,050
net_rshares17,907,012,572
author_curate_reward""
vote details (1)
@pariza ·
I think it will be safe and better.
properties (22)
authorpariza
permlinkqbgmp1
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-05 15:51:06
last_update2020-06-05 15:51:06
depth1
children0
last_payout2020-06-12 15:51: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_length35
author_reputation752,649,016,231
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,788,627
net_rshares0
@rafaelaquino ·
$0.05
Thank you for sharing what you do. It inspires me to keep learning about "beem". I have enough material to study and practice. This publication and the previous one are great
👍  
👎  
properties (23)
authorrafaelaquino
permlinkqbi7kn
categoryhive-108365
json_metadata{"app":"hiveblog/0.1"}
created2020-06-06 12:19:39
last_update2020-06-06 12:19:39
depth1
children0
last_payout2020-06-13 12:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length174
author_reputation110,039,853,333,114
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id97,804,438
net_rshares194,733,777,860
author_curate_reward""
vote details (2)
@santigs ·
$0.05
Awsome post
👍  
👎  
properties (23)
authorsantigs
permlinkre-holger80-qbgnls
categoryhive-108365
json_metadata{"tags":["hive-108365"],"app":"peakd/2020.05.5"}
created2020-06-05 16:10:45
last_update2020-06-05 16:10:45
depth1
children0
last_payout2020-06-12 16:10:45
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length11
author_reputation140,188,596,902,353
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,788,883
net_rshares195,310,560,647
author_curate_reward""
vote details (2)
@simplegame ·
$0.06
Amazing!!

It just gets better all the time.
👍  
properties (23)
authorsimplegame
permlinkre-holger80-qbfk22
categoryhive-108365
json_metadata{"tags":["hive-108365"],"app":"peakd/2020.05.5"}
created2020-06-05 01:56:27
last_update2020-06-05 01:56:27
depth1
children0
last_payout2020-06-12 01:56:27
cashout_time1969-12-31 23:59:59
total_payout_value0.028 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation128,640,964,346,570
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,780,261
net_rshares208,346,123,490
author_curate_reward""
vote details (1)
@teenagecrypto · (edited)
$0.05
Thanks for the tutorial I have been interested in coding and am currently going for a degree in cybersecurity 
👍  
👎  
properties (23)
authorteenagecrypto
permlinkqbiks7
categoryhive-108365
json_metadata{"app":"hiveblog/0.1","tags":[]}
created2020-06-06 17:04:57
last_update2020-06-06 22:33:48
depth1
children0
last_payout2020-06-13 17:04:57
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.026 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length110
author_reputation25,380,001,614,578
root_title"How to run beem/beempy in your browser with repl.it"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id97,808,229
net_rshares194,350,216,665
author_curate_reward""
vote details (2)