lbrynet

What is this?

This is a tutorial on all things regarding lbrynet!

lbrynet publish

In order to publish these are the main values you would probably want:

More options on sdk documentation

Example Command

lbrynet publish --name=aaaaa --bid=0.1 --file_path="~/aaaaa.txt" --title="aaaaa" --description="aaaaa" --channel_name=@TrueAuraCoralPublishesImages

Projects/scripts that use lbrynet

My own scripts

Sign into lbrynet

There are two option for signing into lbrynet that I know of:

This is a login script for the lbry SDK. Correctly using this login script will let you have complete access to the SDK's publication features. Make sure when running this script you have lbry sdk installed and running in the background of your computer. Otherwise it will not work.

HOW? Bellow you will see a prompt asking for the Auth Token. What do you need to do:

Next you will get basic questions asking what is your email and password to your lbry account.

In order to check that everything worked go do this command with your sdk: (Insert test command to show things are working.

import requests

auth_token = input("Auth Token: ")
my_email = input("Account Email: ")
my_password = input("Account Password: ")
#Crete new user
newStuff = requests.post("https://api.odysee.com/user/new").json()
auth_token = newStuff["data"]["auth_token"]

#Associate user with your account
signInStuff = requests.post("https://api.odysee.com/user/signin", data={"auth_token":auth_token, "email":my_email, "password": my_password}).json()

sync_hash = requests.post("http://localhost:5279/?m=sync_hash", json={"jsonrpc":"2.0","method":"sync_hash","params":{}, "id": 1}).json()["result"]

dontknow1 = requests.post("https://api.lbry.com/sync/get", data={"auth_token":auth_token,"hash":sync_hash}).json()

print(dontknow1)
# Password probably needs to be wallet encryption password, I think default is same as Odysee password or empty
dontknow2 = requests.post("http://localhost:5279/?m=sync_apply", json={"jsonrpc": "2.0", "method": "sync_apply", "params": {"password": "", "blocking": "true", "data": dontknow1["data"]["data"]}}).json()

print(dontknow2)

License