Fixbug salt line
This commit is contained in:
parent
ca6308cf21
commit
b4aae389b2
@ -16,7 +16,7 @@ API_RAW_PASTE_URL = 'https://pastebin.com/api/api_raw.php'
|
|||||||
@click.option('--password', required=True, help='Your password account')
|
@click.option('--password', required=True, help='Your password account')
|
||||||
@click.argument('search')
|
@click.argument('search')
|
||||||
def main(api_key, username, password, search):
|
def main(api_key, username, password, search):
|
||||||
"""Main application"""
|
""" Terminal application to find and copy your own Paste for Pastebin"""
|
||||||
user_key = get_user_key(api_key, username, password)
|
user_key = get_user_key(api_key, username, password)
|
||||||
title = f'Results: {search}'
|
title = f'Results: {search}'
|
||||||
options = get_list(api_key, user_key, search)
|
options = get_list(api_key, user_key, search)
|
||||||
@ -95,10 +95,10 @@ def get_raw_paste(api_key, user_key, paste_key):
|
|||||||
}
|
}
|
||||||
).encode('ascii')
|
).encode('ascii')
|
||||||
response_paste = urllib.request.urlopen(url=API_RAW_PASTE_URL, data=post_data)
|
response_paste = urllib.request.urlopen(url=API_RAW_PASTE_URL, data=post_data)
|
||||||
raw_paste = response_paste.read().decode("utf-8")
|
# Clear
|
||||||
|
raw_paste = response_paste.read().decode("utf-8").replace('\r', '')
|
||||||
|
|
||||||
return raw_paste
|
return raw_paste
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
setup(
|
setup(
|
||||||
name = 'get-my-pastebin',
|
name = 'get-my-pastebin',
|
||||||
py_modules=['get_my_pastebin'],
|
py_modules=['get_my_pastebin'],
|
||||||
version = '1.0.11',
|
version = '1.0.12',
|
||||||
python_requires='>3.6',
|
python_requires='>3.6',
|
||||||
description = 'Terminal application to find and copy your own Paste for Pastebin.',
|
description = 'Terminal application to find and copy your own Paste for Pastebin.',
|
||||||
author = 'Andros Fenollosa',
|
author = 'Andros Fenollosa',
|
||||||
|
Loading…
Reference in New Issue
Block a user