This script may provide you to easily way to paste your text/log etc. to Pastebin.com.
Before using this script, you've got to change dev_key to your unique developer API key. See https://pastebin.com/api.
Python 3 or higher.
pastebin.py
pastebin.py [-f | --file] [-t | --title] [-s | --syntax] [-e | --expire] [-l | --login] [-p | --private]
pastebin.py [-h | --help]
Options:
-f --file Your paste file.
-t --title The name or title of your paste
-s --syntax Your paste format.
-e --expire The expiration date of your paste.
N = Never, 10M = 10 mins, 1H = 1 hour, 1D = 1 day, 2W = 2 weeks,
1M = 1 month, 6M = 6 months, 1Y = 1 year.
-l --login Your paste will belong to your account.
-p --private 1 -> Private, 2 -> Unlisted, 0 -> Public. (Default:0)
Examples:
$ python pastebin.py ~/paste.py
https://pastebin.com/hKDj1gPu
$ python pastebin.py ~/paste.py -t paste.py -s python -l -p 2
https://pastebin.com/VWFTMg2u