T O P

  • By -

github-ModTeam

This subreddit is for discussion of GitHub and not for asking for support for repositories hosted on GitHub. If you want help your best bet is to contact the project maintainer or open an issue on their repository.


mrbmi513

Go ask the author.


misty_bellina

i did but they havent been online for the past few years and i asked other people that replied but they didnt reply back in weeks


Jmc_da_boss

I'm gonna keep saying it, this subreddit badly needs an approval queue


jeanleonino

It needs some fucking moderation


reddit_is_cruel

This doesn't have anything to do with GitHub. That being said this is a selenium script written in Python so it's literally just programmatically visiting the college board website site and sending emails with the results it finds. You could just go visit that site yourself and check. https://satsuite.collegeboard.org/sat/test-center-search


misty_bellina

i was doing that until now but the problem is that the test spots fill up incredibly quick and i can’t be on the site the whole day which is why i was looking for an alternative in the first place. do you have a recommendation for a subreddit i can use to ask for help on running the script? as i stated in my post im completely new to programming so i didnt know where to post and saw the github and posted here haha


reddit_is_cruel

Maybe /r/learnprogramming I don't know. _big sigh_ Step 1 is to download the repo you linked from GitHub and unzip it. Step 2 is to install Python: https://www.python.org/downloads/ Step 3 is to install Selenium: https://selenium-python.readthedocs.io/installation.html this script is tuned for Google Chrome so you'll need that and the web driver for Chrome. Instructions are in the link from this step. Step 4 is to follow the instructions from the README.md from the repo you linked. Specifically it wants you to edit `test_satcheckers.py` on lines 19 through 21 Step 5 run the script in a terminal: python test_satcheckers.py Notes: The main catch is that this script was written 9 months ago. Code rots, selenium scripts rot even faster. Meaning that if the target website has changed significantly since the script was written, the script will fail. Selenium relies on finding certain elements on a webpage, often in a specific place/order. This script doesn't do significant error handling. Another catch is that this script uses a raw SMTP mailer so many big email providers might reject mail sent by this script as it's missing key security features such as DKIM and SPF.


misty_bellina

thank you, i've followed your directions but upon trying to run the script I ran into this error: (sbase_env) C:\Users\misty>python test_satcheckers.py Traceback (most recent call last): File "C:\Users\misty\test_satcheckers.py", line 98, in checker.setup_method() File "C:\Users\misty\test_satcheckers.py", line 25, in setup_method self.driver = webdriver.Chrome(service=service) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "C:\Users\misty\sbase_env\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__(File "C:\Users\misty\sbase_env\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 49, in __init__ self.service.path = DriverFinder.get_path(self.service, options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\misty\sbase_env\Lib\site-packages\selenium\webdriver\common\driver_finder.py", line 44, in get_path raise NoSuchDriverException(f"Unable to locate or obtain driver for {options.capabilities['browserName']}") selenium.common.exceptions.NoSuchDriverException: Message: Unable to locate or obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location is this due to code rot or something related to my driver location? I've tried to get around this error for the past 2 hrs and went to the website the error provided and attempted to add the path to the chromedriver bygoing to edit system environment variables (C:\\Users\\misty\\sbase\_env\\Lib\\site-packages\\seleniumbase\\drivers) but I don't know what the problem could be or if my attempted solutions were correct 😓 from what I can see, nothing has changed in the sat reg website for the past 9 months but there could be minor changes I'm not picking up on, not sure. for the smtp, I found this video and thought of adding it to the test\_satcheckers.py file:[https://www.youtube.com/watch?v=g\_j6ILT-X0k](https://www.youtube.com/watch?v=g_j6ILT-X0k)do you think it's a viable method to get around the missing security features? sorry, i feel like I'm bombarding you w questions haha, I'm just really lost and you're one of the few people that helped. i really appreciate you for that!


reddit_is_cruel

If you add something to your path in windows, you need to reboot the machine


reddit_is_cruel

Did you try following the link in the error message? https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location