Skip to content

Commit

Permalink
Merge pull request #31 from Charan121298/main
Browse files Browse the repository at this point in the history
Added driver service thnask to Charan12129
  • Loading branch information
wael-sudo2 authored Jul 7, 2024
2 parents a45c072 + c4bb23c commit 27bbf5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion facebook_page_info_scraper/facebook_page_info_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from selenium import webdriver
from typing import Optional, List, Any, Tuple, Union
from selenium.webdriver.remote.webelement import WebElement
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
import re
from geopy.geocoders import Nominatim
import urllib.parse
Expand Down Expand Up @@ -59,7 +61,7 @@ def __private_webdriver_setup(browser_profiles_path = None, profile_name = None)
options.add_argument("--start-maximized")
options.add_argument("headless")

web_driver = webdriver.Chrome(options=options)
web_driver = webdriver.Chrome(options=options, service=Service(ChromeDriverManager().install()))
return web_driver
except Exception as e:
print("Error setting up webdriver.", e)
Expand Down

0 comments on commit 27bbf5b

Please sign in to comment.