# Module originally made by @venaxyt on Github
# Fixed and remodeled by @ksiscute on Github
import pastebinapi
username = "pastebin account username"
password = "pastebin account password"
api_key = "account api_key findable here https://pastebin.com/doc_api"
# Check an account
pastebinapi.check(username, password, api_key)
>>> Output : [username] Valid account
# Get the token of an account
pastebinapi.token(username, password, api_key)
>>> Output : [username] Token : account token
# Upload a paste on an account
privacy = "2" # 0 : public | 1 : unlisted | 2 : private
content = "That's my text"
title = "ks's paste"
pastebinapi.paste(username, password, api_key, privacy, title, content)
pastebinapi.url(setting="1") # get pastebin url
-
Notifications
You must be signed in to change notification settings - Fork 3
This Python module allows to get a Pastebin account validity or token and upload pastes from the api.
License
venaxyt/pastebinapi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
This Python module allows to get a Pastebin account validity or token and upload pastes from the api.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published