This script is an adaptation of Brendons Vanity.py script
[original script](https://odysee.com/@BrendonBrewer:3/vanity:8) at @brendonbrewer channel, lots information about the naming system, repost tricks etc. there
### Requirements:
- `python 3.6.1 or higher`
- `pip`
- `lbry app or lbrynet running`
### Tutorial as soon as I go back from skate
```py
import json
import requests
import os
from rich.console import Console
from time import sleep
from rich.table import Table
console = Console()
os.system('pip install rich -q')
# LBRY JSON RPC URL
HOST = "http://localhost:5279"
# Do a claim list
response = requests.post(HOST, json={"method": "claim_list",
"params": {}}).json()
f = open("modesty_names_output.txt", "w")
# Get the number of claims
num_claims = response["result"]["total_items"]
def write(s, end="\n", flush=False):
"""
Write a string to stdout and the file
"""
print(s, end=end, flush=flush)
f.write(s)
f.write(end)
if flush:
f.flush()
# Get the claim info
with console.status("[bold green]Looking into LBRY blockchain...", spinner="earth") as status:
write("\n")
f.write(f"You have {num_claims} claims.")
console.print(f"You have {num_claims} claims." + ":smiley:")
write("If you stake more LBC in the names bellow you can get better viewership on then \n",
flush=True, end="")
response = requests.post(HOST,
json={"method": "claim_list",
"params": {"page_size": num_claims,
"resolve": True}}).json()
claims = response["result"]["items"]
for claim in claims:
claim_id = claim["claim_id"]
# Vanity name and whether you're controlling it
vanity_name = claim["name"]
controlling = claim["meta"]["is_controlling"]
staked_amount = float(claim["amount"]) + float(claim["meta"]["support_amount"])
# Get multiplicity of the vanity name, and max LBC
max_lbc = None
response = requests.post(HOST,
json={"method": "claim_search",
"params": {"name": vanity_name}}).json()
multiplicity = response["result"]["total_items"]
response = requests.post(HOST,
json={"method": "claim_search",
"params": {"name": vanity_name,
"page_size": multiplicity}}).json()
competitors = 0
for item in response["result"]["items"]:
# Look at staked LBC
item_lbc = float(item["amount"]) + float(item["meta"]["support_amount"])
if item["claim_id"] != claim_id and \
(max_lbc is None or item_lbc > max_lbc):
max_lbc = round(item_lbc,2)
# Count competitors
if (item["value_type"] != "repost" and item["claim_id"] != claim_id)\
or ("reposted_claim_id" in item and \
item["reposted_claim_id"] == claim_id):
competitors += 1
# Print some information
table = Table()
table.add_column("Post Name", justify="center", style="bright_yellow", no_wrap=True)
table.add_column("Winning Bid", justify="center", style="green")
table.add_column("Your poor Bid", justify="center", style="red")
if controlling:
continue
else:
table.add_row(vanity_name, str(max_lbc) +" LBC" , str(staked_amount) +" LBC")
f.write("-------------------------------"+"\n")
f.write("Name: "+ vanity_name +"\n")
f.write("-------------------------------"+"\n")
f.write(f"Number of competing claims, excluding reposts of your claim: {competitors}""\n")
f.write(f"LBC on your claim: {staked_amount}""\n")
f.write(f"Maximum LBC on competing claims: {max_lbc}""\n")
f.write("-------------------------------------------------------------------"+"\n")
if max_lbc is not None:
if controlling and max_lbc > staked_amount:
write("TAKEOVER WARNING!")
if not controlling and staked_amount > max_lbc:
write("YOUR CLAIM HAS ENOUGH LBC BUT IS WAITING FOR TAKEOVER.")
write("", end="\n\n", flush=True)
f.write("-------------------------------------------------------------------")
console.rule("[bold red]")
console.print(table)
f.close()
console.print(f'[bold][red]Done! :heart:'+ ' [yellow]Output saved to modesty_names_output.txt')
```
# Brendon's Scripts
---
![](https://img.lbry.to/files/ogbzxb.png)
[Bredon Brewer](https://open.lbry.com/@BrendonBrewer:3?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk) didn't stop only at Lbrynomics he is always sharing cool and useful scripts to interact with LBRY that I use a lot for its features and for learning, I am a fan of his work, and I am sure you will be too.
1)[A Python program to count the number of seeders for a file on LBRY](https://open.lbry.com/@BrendonBrewer:3/peer-count:7?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"The latest addition to my series of utilities for [LBRY Desktop](https://lbry.com/get) users is this little Python program which you can use to find out how many peers or seeders are currently on the LBRY network that have a given file. When you run it, you just need to enter the LBRY URL of the content you are interested in, and it figures out the rest."
2)[A Python script to check all your vanity names on LBRY](https://open.lbry.com/@BrendonBrewer:3/vanity:8?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"By popular demand (actually just the request of [@ScammerRevolts](https://lbry.tv/@ScammerRevolts:b0)), I wrote a Python program which you can use to download all content (reposts excluded) from a LBRY channel. You might want to do this for offline viewing or for seeding. If you want to delete these later, you can use [this](https://lbry.tv/@BrendonBrewer:3/file_cleanup:8) to do it. :-) "
3)[ A Python script to delete files from your LBRY Library on a per-channel basis](https://open.lbry.com/@BrendonBrewer:3/file_cleanup:8?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"I rewrote this from scratch. You can now choose how many files to delete from the selected channel. It will delete the oldest ones (as defined by their release date). It also shows you the claim names before you confirm you want to delete the files. **This now makes a really good companion to [my channel downloading script](https://lbry.tv/@BrendonBrewer:3/channel-download:8) in my opinion!"**
4)[A Python tool to manage stalled LBRY downloads](https://open.lbry.com/@BrendonBrewer:3/manage_stalled_files:4?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"Sometimes, for some reason, LBRY doesn't finish downloading a file. I think this can happen when you stop watching a video, or when there aren't any peers with the complete file, but it also seems to happen randomly from time to time.
>Anyway, you probably don't want the blobs for half-downloaded files sitting around in your Library and taking up space on your hard disk. This script checks to see if you have any of these, and then gives you the option of either trying to complete all the downloads, or deleting them all. If you want to go case by case, it doesn't do that, but it does print out a list so you can go figure them out for yourself. As with the previous script, you'll have to press Ctrl+R in the LBRY app for it to realise you deleted some stuff."
5)[Blob Detective: A Python script for hardcore LBRY nerds](https://open.lbry.com/@BrendonBrewer:3/blob-detective:7?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"This Python script will `tail` your LBRY log file, that is, watch it for recent log messages and print out those messages to the screen. When you seed a "blob" to another peer on the LBRY network, it will perform an SQL query to figure out what file it is that you're actually seeding, and will annotate the normal log message with that extra information."
6)[A Python script to download all content (or just recent content) from a single LBRY channel](https://open.lbry.com/@BrendonBrewer:3/channel-download:8?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
>"I wrote a Python program which you can use to download all content (reposts excluded) from a LBRY channel. You might want to do this for offline viewing or for seeding. If you want to delete these later, you can use [this](https://lbry.tv/@BrendonBrewer:3/file_cleanup:8) to do it. :-) "
And I modified this last one so it only downloads only the blobs of the file so it doesn't takes much space from your computer (thanks to [@eukrein](https://lbry.tv/@eukrein) that rescue me from non-sense complex solutions to a simple boolean switch tip) and then made executable for the Windows user :) I also added a call to `lbrynet.exe` to make sure its running while the script is working.
I called this one...
# [LBRYSEEDS](https://open.lbry.com/@vlad:e/blob:6?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
A tool for nice people that want to help seeding their favorite channels and friends, increasing buffering speed for its content.
You can check more about it [HERE](https://open.lbry.com/@vlad:e/blob:6?r=DTJCdL9sY1oWDrBQVyKwXTYDbqYQWsyk)
If you know more useful LBRY tools or have any doubts of how to use those tools please comment bellow and you also can reach the creators on the communities discords.
# [lbry-toolkit](https://github.com/VladHZC/lbry-toolkit)
# 1) Install [Python 3.9](https://www.python.org/) and make sure you add it to PATH when installing as bellow:
![](https://tubemint.com/wp-content/uploads/2020/10/set-python-3-9-to-system-path.png)
# 2) Run install.bat (you only need to run it once)
# 3) Run LBRYTOOLS.bat
![](https://i.ibb.co/1b0njKf/unknown.png)
Features :
- 1. List all Tips
- 2. Unlock all Tips
- 3. Vanity Names by Brendon
- 4. Lbryseeds by Brendon and me
- 5. Seeding ratio by Brendon
- 6. Lbry Uploader
- 7. Useful Websites for LBRY performance
Thanks Simon, Electron, JiggyTom , Brendon , Eukrein , Blanx, Rip8
# LBC Today's convertion tool
![](https://i.ibb.co/3SmZWyk/Screenshot-4.jpg)
You know when you get 1 million LBC and don't know how much weed/beer you can buy with it ?
Ok, 1M times anything its an easy count, but what if you got 2521 LBC for translating LBRY apps with Julie, or you win a running contest of @letsfly or what if you steal 341213,8 LBC from @scammerrevolts computer (better not to try that)
---
## Brave / Chrome Browser [use brave](https://brave.com/?ref=duw104)
---
[![](https://i.ibb.co/ZmFRFTB/brave-button.png)](https://chrome.google.com/webstore/detail/lbc-today/ealgadmpgaefckfpclemccenfkjihedn/related)
[![](https://i.ibb.co/z6Hcqy2/chrome-button.png)](https://chrome.google.com/webstore/detail/lbc-today/ealgadmpgaefckfpclemccenfkjihedn/related)
---
## Mozilla Firefox
---
[![](https://i.ibb.co/QXvQyYX/firefox-button.png)](https://addons.mozilla.org/firefox/downloads/file/3657516/lbc_today-1.2.1-fx.xpi)
(need to fix HTML format but works)
---
## Open Code (lots of browsers)
---
[![](https://i.ibb.co/L5sTFYK/download-button.png)](https://github.com/VladHZC/lbc-today/archive/master.zip)
---
### Thanks to @claytondoesthings for helping me with JS
---
![](https://i.ibb.co/hsYXzhX/Screenshot-2.png )
### Now you can do the convertion in your browser and keep yourself updated with the price (buy and support your favorite creators!)