dkkocab / WebSiteBot_PS5

This is a bot that will buy a PS5 through Walmart. It's written in python and uses selenium to interact with web pages. *WORK IN PROGRESS*
342 stars 91 forks source link

Enhancements #14

Open WisdomWolf opened 3 years ago

WisdomWolf commented 3 years ago

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 commented 3 years ago

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

WisdomWolf commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Pyyaml, it's in the Pipfile (which is used by pipenv). I suppose I should create a more traditional requirements file that most people are used to.

On Wed, Nov 25, 2020, 7:25 PM Luke Eltiste notifications@github.com wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dkkocab/WebSiteBot_PS5/pull/14#issuecomment-734005470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABINTOTF4USJFTGGWGSZ4R3SRWOAFANCNFSM4UC4SB3A .

P-Squiddy commented 3 years ago

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