Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/htz1992213/mdgo
Browse files Browse the repository at this point in the history
  • Loading branch information
htz1992213 committed Dec 19, 2023
2 parents b38841a + 137255a commit 8f82809
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdgo/forcefield/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(
"profile.managed_default_content_settings.images": 2,
}
self.options = webdriver.ChromeOptions()
self.server = webdriver.ChromeService(chromedriver_dir)
self.options.add_argument(
'user-agent="Mozilla/5.0 '
"(Macintosh; Intel Mac OS X 10_14_6) "
Expand All @@ -87,7 +88,7 @@ def __init__(
if chromedriver_dir is None:
self.web = webdriver.Chrome(options=self.options)
else:
self.web = webdriver.Chrome(chromedriver_dir, options=self.options)
self.web = webdriver.Chrome(service=self.server, options=self.options)
self.wait = WebDriverWait(self.web, 10)
self.web.get("http://zarbi.chem.yale.edu/ligpargen/")
time.sleep(1)
Expand Down

0 comments on commit 8f82809

Please sign in to comment.