Skip to content

Enhancements - #14

Open
WisdomWolf wants to merge 8 commits into
dkkocab:mainfrom
WisdomWolf:main
Open

Enhancements#14
WisdomWolf wants to merge 8 commits into
dkkocab:mainfrom
WisdomWolf:main

Conversation

@WisdomWolf

Copy link
Copy Markdown

I cleaned things up some and added the option to load personal details from yaml file (so they don't accidentally get committed). I also added some simple logging to follow the process and captcha recognition. It won't handle the captcha, but it'll recognize that a captcha is active and wait to resume so it doesn't interfere. Oh, I also added another item URI that's already in stock to test with.

@Frazzer951

Copy link
Copy Markdown

With your changes, does it still use a GUI like the current version, or is it entirely command line?

@WisdomWolf

Copy link
Copy Markdown
Author

I made changes to the non-release file so it's entirely command line. Just create the yaml file, ensure that you have Selenium installed and run.

@Frazzer951

Copy link
Copy Markdown

I cloned your fork to test out the changes, but I'm missing the yaml library. I tried pip install yaml and it didn't find anything. Is there a specific name for the library?

@WisdomWolf

WisdomWolf commented Nov 26, 2020 via email

Copy link
Copy Markdown
Author

@JeffResc JeffResc mentioned this pull request Nov 26, 2020
@P-Squiddy

Copy link
Copy Markdown

I cloned this pr to test, but i'm having some problems getting it started...I've tried running cmd as admin, changin python.exe permissions to run as admin, creating a batch file to run as admin, creating a shortcut to python, then changing the target and running as admin XD but it's still telling me the permissions are wrong. any ideas?

Traceback (most recent call last):
File "C:\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Python38\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Python38\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\d\Documents\GitHub\WebSiteBot_PS5\WalmartBot.py", line 246, in
bot = DiaperBot(**personal_info)
File "C:\Users\d\Documents\GitHub\WebSiteBot_PS5\WalmartBot.py", line 51, in init
self.driver = webdriver.Chrome(os.getenv(chrome_path_var))
File "C:\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
self.service.start()
File "C:\Python38\lib\site-packages\selenium\webdriver\common\service.py", line 86, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: '' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

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.

3 participants