I'm trying to access specific data from following website: https://koronawirusunas.pl/
Looking for the last entry in green chart/columns shown below - 69513. The only place where I found this number is in line 2028 of web source.
This line contains all entries from the chart separated with date. I have no problem with accessing any other numbers in sections in body part, f.e. with:
import requests
from bs4 import BeautifulSoup
source = requests.get('https://koronawirusunas.pl').text
soup = BeautifulSoup(source, 'lxml')
ratio = soup.find('div', class_='col-md-6 col-lg-4 align-bottom').p.span.text
print(r"Aktualny wskaźnik średniej liczby zakażeń na 100tys. osób \ 7 dni: {}".format(ratio))
but I can't get anything from marked part of website. Following code gives me no result:
import requests
from bs4 import BeautifulSoup
source = requests.get('https://koronawirusunas.pl').text
soup = BeautifulSoup(source, 'lxml')
daily_number_of_vaccines = soup.find('var', dataSource_szczepienia=[])
print(daily_number_of_vaccines)
