Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Update core_cookies.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark authored Aug 6, 2023
1 parent 8e6570b commit 811647d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions bardapi/core_cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,27 +218,6 @@ def _get_snim0e(self) -> str:
)
return snim0e.group(1)

# def auth(self): #Idea Contribution
# url = 'https://bard.google.com'
# driver_path = "/path/to/chromedriver"
# options = uc.ChromeOptions()
# options.add_argument("--ignore-certificate-error")
# options.add_argument("--ignore-ssl-errors")
# options.user_data_dir = "path_to _user-data-dir"
# driver = uc.Chrome(options=options)
# driver.get(url)
# cookies = driver.get_cookies()
# # Find the __Secure-1PSID cookie
# for cookie in cookies:
# if cookie['name'] == '__Secure-1PSID':
# print("__Secure-1PSID cookie:")
# print(cookie['value'])
# os.environ['_BARD_API_KEY']=cookie['value']
# break
# else:
# print("No __Secure-1PSID cookie found")
# driver.quit()


class BardAsyncCookies(BardAsync):
"""
Expand Down

0 comments on commit 811647d

Please sign in to comment.