Created
March 1, 2020 00:47
-
-
Save samsee/a54f2f221b4fa2353bcf123263731756 to your computer and use it in GitHub Desktop.
stock_check_coupang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def coupang_check(res): | |
soup = BeautifulSoup(res.text, 'html.parser') | |
stock_div = soup.find(find('div', class_='prod-not-find-known__buy__button') | |
if stock_div.text == "품절": | |
return False | |
return True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment