# Module originally made by @venaxyt on Github# Fixed and remodeled by @ksiscute on Githubimportpastebinapiusername="pastebin account username"password="pastebin account password"api_key="account api_key findable here https://pastebin.com/doc_api"# Check an accountpastebinapi.check(username, password, api_key)
>>>Output : [username] Validaccount# Get the token of an accountpastebinapi.token(username, password, api_key)
>>>Output : [username] Token : accounttoken# Upload a paste on an accountprivacy="2"# 0 : public | 1 : unlisted | 2 : privatecontent="That's my text"title="ks's paste"pastebinapi.paste(username, password, api_key, privacy, title, content)
pastebinapi.url(setting="1") # get pastebin url
Install Module : pip install pastebinapi
About
This Python module allows to get a Pastebin account validity or token and upload pastes from the api.