Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = "https://www.google.com/search?q=%22ean%22+%22" + title + \
- "%22&client=firefox-b-d&ei=8W5cYdi-Kc-ckgW-54LIDA&ved=0ahUKEwiY-_zeyrPzAhVPjqQKHb6zAMkQ4dUDCA0&uact=5&oq=%22ean%22+%22" + title + "%22"""
- f = s.get(url)
- eanfield = f.html.xpath(
- '//*[@id="center_col"]//span[contains(., "EAN")]', first=True)
- ean = re.search(r'EAN[:\s]\s?(\d+)', txt_found).group(1)
- print(ean)
Advertisement
Add Comment
Please, Sign In to add comment