'chromedriver' executable needs to be in PATH when run scrapy selenium on Terminal
1. Download chromedriver
1.1 Check chrome version
chrome://version
1.2 Download chomedriver with same verion
2. Set path on python
from selenium import webdriver
chrome_driver = '/Users/***/Downloads/chromedriver'
drive = webdriver.Chrome(executable_path=chrome_driver, chrome_options=self.option)
3. Crontab on Mac
- crontab -e
50 23 * * * /opt/anaconda3/envs/scrapy_sina/bin/python -u /Users/***name/PycharmProjects/scrapycourse/sina/sina/main.py >> /Users/***name/PycharmProjects/scrapycourse/sina/sina/sina2mysql.txt 2>&1
- crontab -l with check schedule