Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version check to chromedriver and browser #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

bji219
Copy link
Contributor

@bji219 bji219 commented Mar 13, 2023

This would prevent the code from downloading the chromedriver that is a version ahead of your chome browser if for some reason the automatic install has not yet happened (for example, my chrome browser is not yet at version 111, but chromedriver already released a 111 version).

@bji219
Copy link
Contributor Author

bji219 commented Sep 15, 2023

Added bug fixes for selenium 4 updates in Python. Selenium has a chrome driver package manager now so no need for auto-checking chrome driver. Chrome >115 only works with the Chrome for Testing dashboard.

scraper.py Outdated
Comment on lines 85 to 88
url= GOOGLE_URL + '?q=' + companyName
result = requests.get(url)
# fancy regex courtesy of pbui
urls = re.findall('/url\?q=([^&]*)', result.text)
urls= re.findall('/url\?q=([^&]*)', result.text)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: spacing

scraper.py Outdated

# enter email and password. uses getpass to hide password (i.e. not using plaintext)
your_email=raw_input("Please enter your email for magicformulainvesting.com: ")
# Replace with raw_input() with input() for python 3
your_email= input("Please enter your email for magicformulainvesting.com: ")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spacing :)

scraper.py Outdated

date=datetime.datetime.today().strftime('%Y-%m-%d') # current date
wks.append_row([date], table_range='A1') # append the date, starts in first column
wks = gc.open_by_url("YOUR URL HERE"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comma?

@ginglis13
Copy link
Owner

Thanks yo just a couple nits/qs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants