Skip to content

Commit

Permalink
solved syntatic error
Browse files Browse the repository at this point in the history
  • Loading branch information
HEGADE committed Oct 18, 2021
1 parent c8209f9 commit 5ff659f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gdcli/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __query_build_phone__(self, args: Dict) -> str:
self.parser.print_usage()
return None

def __query_build_file__(args) -> str:
def __query_build_file__(self,args) -> str:
try:
if(args.get("search_query")):
return f'https://google.com/search?q={args.get("search_query")} filetype:{args.get("file_type")}'
Expand Down
11 changes: 7 additions & 4 deletions gdcli/utils/cli_arguments/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ def _initialise_args__(self):
'''Commamd line tool for Google dorks\n
1) -op 1 for general query \n
>> gd -op 1 -q ninja -s instagram -e gamer \n
>> gdcli -op 1 -q ninja -s instagram -e gamer \n
2) -op 2 for instagram user finding
>> gd -op 2 -q ninja -b gamer -l usa
>> gdcli -op 2 -q ninja -b gamer -l usa
3) -op 2 for phone number search
>> gdcli -op 2 "223234566"
3) -op to for specific filetype
>> gd -op 3 -q python -f docx
4) -op to for specific filetype
>> gdcli -op 3 -q python -f docx
''')
self.parser.add_argument(
Expand Down
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ Install google dork cli using pip
>> gdcli -op 1 -q ninja -s instagram -e gamer

2) -op 2 for instagram user finding
>> gdcli -op 2 -q ninja -b gamer -l usa
>> gdcli -op 2 -q ninja -b gamer -l usa

3) -op 2 for phone number search
>> gdcli -op 2 "223234566"

4) -op to for specific filetype
>> gdcli -op 3 -q python -f docx




Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = (this_directory / "README.md").read_text()
setup(
name="gdcli",
version="1.0.8",
version="1.0.9",
author="Subrahmanya s hegade",
author_email="[email protected]",
description='''
Expand Down

0 comments on commit 5ff659f

Please sign in to comment.