A python module for bitclout
Project description
BitClout.py
A python package for bitclout.
Developed by ItsAditya
Examples of How To Use BitClout.py
Getting $CLOUT price
import bitclout
print(bitclout.Clout.getCloutPrice())
Getting user(s) info through publicKey(s)
import bitclout
import json
with open("userInfo.json", "w") as file:
listOfPublicKeys = ["BC1YLjJVhcVAi5UCYZ2aTNwRMtqvzQar4zbymr7fyinu8MsWLx2A1g1"] # you can pass multiple public key of users
json.dump(bitclout.Users.getUserStateless(listOfPublicKeys))
Getting user info through BitClout username
import bitclout
import json
with open("userInfo.json", "w") as file:
username = "ItsAditya"
json.dump(bitclout.Users.getSingleProfile(username))
Getting users who are blocked by a profile
import bitclout
import json
with open("blockedUsers.json", "w") as file:
publicKey = "BC1YLhBLE1834FBJbQ9JU23JbPanNYMkUsdpJZrFVqNGsCe7YadYiUg" # well, that's my (@ItsAditya) public key :)
json.dump(bitclout.Users.getUsersBlocked(publicKey))
Getting user posts
import bitclout
import json
with open("UserPosts.json", "w") as file:
json.dump(bitclout.Posts.getUserPosts(username="ItsAditya"))
More docs coming soon!
Found any issue ? Report us on our repo: https://github.com/AdityaChaudhary0005/BitClout.py
Tip the author of this module some #CLOUT at: https://bitclout.com/u/ItsAditya (even 1 diamond counts :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitclout-0.0.4.tar.gz
(3.7 kB
view hashes)