Skip to content

Instantly share code, notes, and snippets.

@samsee
Created March 1, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsee/a54f2f221b4fa2353bcf123263731756 to your computer and use it in GitHub Desktop.
Save samsee/a54f2f221b4fa2353bcf123263731756 to your computer and use it in GitHub Desktop.
stock_check_coupang
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