File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 3434 help = "Save answer to a file" ,
3535 action = "store_true" )
3636
37+ parser .add_argument ("-c" ,
38+ "--custom" ,
39+ help = "Set a custom API key" ,
40+ action = "store_true" )
41+
3742ARGV = parser .parse_args ()
3843
3944search_flag = Search (ARGV )
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ requests==2.24.0
55termcolor == 1.1.0
66urllib3 == 1.25.10
77rich == 9.9.0
8+ oauthlib == 3.1.0
9+ requests-oauthlib == 1.3.0
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ def search_args(self):
3939 webbrowser .open (f"{ url } ?title={ self .arguments .new } " )
4040 else :
4141 webbrowser .open (url )
42+ elif self .arguments .custom :
43+ self .utility_object .setCustomKey ()
4244
4345 def search_for_results (self , save = False ):
4446 queries = ["What do you want to search" , "Tags" ]
You can’t perform that action at this time.
0 commit comments