Dec-12-2016, 05:36 PM
What I need to know what this error is, and how to fix it.
I have problems installing in thing into python, so I don't know is selenium install right.
I am new so my code maybe bad too.
Here is the code:
then using re for paring the var doc. The for loop to print out all the emails
I hope I did it right.
Here is the error:
Traceback (most recent call last):
File "C:/Users/renny and kite/Desktop/email_scraper.py", line 4, in <module>
driver = webdriver.Chrome()
File "C:\Python27\lib\site-packages\selenium-3.0.1-py2.7.egg\selenium\webdriver\chrome\webdriver.py", line 62, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium-3.0.1-py2.7.egg\selenium\webdriver\common\service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/...river/home
I went to the sight did not help me any.
I sound like it can't find chromedrive, I looked for it and could not find it
I hope someone can help, I would like to see if this works.
Thank you
I have problems installing in thing into python, so I don't know is selenium install right.
I am new so my code maybe bad too.
Here is the code:
from selenium import webdriver import re driver = webdriver.Chrome() driver.get('http://www.networksecuritybybluedog.com/') doc = driver.page_source emails = re.findall(r'[\w\.-]+@[\w\.-]+', doc) for email in emails: print(email)You can see their not much to the code,just making the request downloading the source tags and assigning then to the var doc
then using re for paring the var doc. The for loop to print out all the emails
I hope I did it right.

Here is the error:
Traceback (most recent call last):
File "C:/Users/renny and kite/Desktop/email_scraper.py", line 4, in <module>
driver = webdriver.Chrome()
File "C:\Python27\lib\site-packages\selenium-3.0.1-py2.7.egg\selenium\webdriver\chrome\webdriver.py", line 62, in __init__
self.service.start()
File "C:\Python27\lib\site-packages\selenium-3.0.1-py2.7.egg\selenium\webdriver\common\service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/...river/home
I went to the sight did not help me any.
I sound like it can't find chromedrive, I looked for it and could not find it

I hope someone can help, I would like to see if this works.
Thank you