Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimized a bit the code #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update dorkify.py
R4yGM authored Oct 9, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 254782d4d305d29905c374abb97dca04477437c4
15 changes: 2 additions & 13 deletions dorkify.py
Original file line number Diff line number Diff line change
@@ -257,57 +257,46 @@ def dorkify_menu():
print('INVALID OPTION! \n EXITING ')
sys.exit()


logo.dorkify_logo()
if args['search'] is not None:
logo.dorkify_logo()
search_url.url_search(args['search'])

if args['book'] is not None:
logo.dorkify_logo()
q = str('book:' + args['book'])
search_url.url_search(q)

if args['intitle'] is not None:
logo.dorkify_logo()
q = str('intitle:' + args['intitle'])
search_url.url_search(q)

if args['inurl'] is not None:
logo.dorkify_logo()
q = str('inurl:' + args['inurl'])
search_url.url_search(q)

if args['site'] is not None:
logo.dorkify_logo()
q = str('site:' + args['site'])
search_url.url_search(q)

if args['music'] is not None:
logo.dorkify_logo()
q = str('?intitle:index.of?mp3 ' + args['music'])
search_url.url_search(q)

if args['stocks'] is not None:
logo.dorkify_logo()
q = str('stocks' + args['stocks'])
search_url.url_search(q)

if args['maps'] is not None:
logo.dorkify_logo()
q = str('maps' + args['maps'])
search_url.url_search(q)

if args['weather'] is not None:
logo.dorkify_logo()
q = str('weather' + args['weather'])
search_url.url_search(q)

if args['info'] is not None:
logo.dorkify_logo()
q = str('info' + args['info'])
search_url.url_search(q)

if args['define'] is not None:
logo.dorkify_logo()
q = str('define' + args['define'])
search_url.url_search(q)
search_url.url_search(q)