M
M
Mag1str2021-11-05 18:22:29
Python
Mag1str, 2021-11-05 18:22:29

Why am I not getting anything from the parser?

There is a code that should parse the price, but I get in response []

parser element
61854c1c778e4985143144.png

import requests 
from bs4 import BeautifulSoup 

currency= 'https://digitaleyes.market/collections/Bothered%20Otters%20Golden%20Tickets'
  
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36'}

full_page = requests.get(currency, headers=headers)

soup = BeautifulSoup(full_page.content, 'html.parser')

convert = soup.findAll("span", {"class": "mx-4 sm:mx-8 block text-2xl font-medium leading-none"})
print(convert)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alexbprofit, 2021-11-05
@Mag1str

Content is generated by js, use Selenium for parsing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question