How to buy an out of stock product with a Python Bot, Selenium, Pandas and BeautifulSoup

preview_player
Показать описание
#python #pythonbot #bot #pandas #selenium #beautifulsoup

In this video, I show you how to create a Python Bot to buy any product, including a graphics card, that is out of stock. For this, we use Python, Selenium, Pandas and BeautifulSoup and re-use some of the code from the previous videos!

✅ Recommended Courses
(Includes Amazon Affiliate Links)
==================================

✅ Recommended Playlists
==================================

✅ My Favorite Tech
(Includes Amazon Affiliate Links)
==================================

✅ My RTX 3070 and Ryzen 5900 Machine Learning PC Build
(Includes Amazon Affiliate Links)
=======================================================

✅ MY EQUIPMENT FOR YOUTUBE
(Includes Amazon Affiliate Links)
==================================

As an Amazon Associate, I earn a small commission from qualifying purchases on the amazon links above. It costs you nothing but helps me in keeping the content coming.

✅ Article

✅ BUSINESS ENQUIRIES

✅ SUPPORT THE CHANNEL or get MENTORING

✅ FOLLOW ME

✅ Timestamps:

0:00 Using python exception handling to wait for a single item to be in stock
7:00 Waiting for a list of items to be in stock before buying
9:00 Combining code that waits for items to be in stock with the code that buys an item
11:00 Using Pandas to collect list of items in or out of stock
12:30 Adding price to panda data frame to filter items based on price
16:52 Fixing issue with duplicated items showing up in the panda data frame
18:11 Adding product url to Pandas data frame
19:21 Filtering items out of stock.
23:00 Filtering items by price
27:00 Putting all the code together
Рекомендации по теме
Комментарии
Автор

Videos you probably want to watch:

CODEMENTAL
Автор

Hi, what if there is a bot detector, how could I skip it or pass it? Thanks!

danielmario
Автор

"Do as i say, not as I do." that made me chuckle! Thanks for this! Is this still valid now?

xtsstx
Автор

Thanks for the tutorial, easy and comprehensive!

mercurygalaxii
Автор

Anyone trying this strategy for the 5000 series? Haven’t had any luck getting a 5090. I feel like companies are buying them for their data centres

TUNGR
Автор

Thanks for the video. The problem I cannot figure out is the site that I want to buy the product at, everything is normally sold out. So how do I go through the checkout process to get the right click codes for selenium?

johnbaker
Автор

Fantastic video! I'm trying to use what you're teaching on a different site. The problem I'm having is that the item I'm wanting to buy does not have an out of stock button or an add to cart button. When i look at other items on their site and compare the xpath from add to cart buttons, they are different. There is no id to use and the add to cart element looks like this: <button class="Button variant-primary size-normal">Add to cart</button> Any recommendations on what you would do in this instance?

lloyd
Автор

Not sure if this video, but you said that there is a faster/better method to use than xpath. What is that other method and will you ever show it in video?

zacharygoodwin
Автор

Thank you for the Video it helped me a lot :)

Felixprz
Автор

Thanks for the video. When I try and execute the lines of code at 5:29 in the video (in particular cell 5). It gives me either an invalid syntax for "break".

kevinidleman
Автор

hello thanks for your tutorial i want to ask you tricky question in case this item not available and the bot trying to detect the buy icon in case it's showing how i can get the XPath of this button to proceed to buy in case this is the first time, please need your help

anonymousengineer
Автор

im getting an error with while (True), do i need anything to install to make work?

matteova
Автор

I am having trouble with loading the web browers it keeping saying chrome driver version is for 98 but the current out is a 90 what am I doing wrong

jinxnatorx
Автор

My access gets denied after the first time loading on the nvidia site for example anything i can do to fix that?

crime
Автор

I cant get jypter to open up into chrome no matter what I do. Keeps opening into Microsoft Edge.

SanguedolcTV
Автор

ModuleNotFoundError: No module named 'selenium' getting this error

joeclark
Автор

I'm curious to know why are you using something like anaconda instead of a traditional IDE such as Eclipse or Microsoft VC?

RocketLeon
Автор

Still learning and I have my script refreshing on a specific page that will wait until item becomes in stock. Is there a way to make it add say 2 items instead of just clicking the add to card button right away.

NovaUnicorn
Автор

Hi, can you help me how to buy products that only appear at a fixed time ? and before that, the link of the product will appear and it will show that it is out of stock

hoquangnguyen
Автор

I wanted to try this but do I have to find the product in stock on the site I want to use first? Or can I pick any item on the site and go thru the checkout process and just keep the original product url? I mean if I had to find the product in stock first what would be the point lol. I ask because there is no add to cart options when its not in stock. Another thing is sometimes they randomly raise the price way high, what if that happens and dont want it at an extra $500 lol.

NitroVipers
welcome to shbcf.ru