Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- import requests
- import smtplib
- import requests
- import os
- import datetime
- ######### IMPORTS ##########
- ############################
- #########################################
- ######### Producto a comprobar ##########
- ASIN = "B087Q1GXHM"
- URL = (f"https://www.amazon.es/gp/product/{ASIN}")
- HEADERS = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15"}
- #PrecioAnteriorLimpio
- page = requests.get(URL, headers=HEADERS)
- soup = BeautifulSoup(page.content, 'lxml')
- PrecioActualSucio = soup.find(id='bundle-v2-btf-price-strikethrough')
- print(f'{PrecioActualSucio}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement