I'm trying to scrape data from 'Mars Weather Report from Perseverance' (https://mars.nasa.gov/mars2020/weather/). But when I try to scrape, e.g, the Mars Date, it returns a none item in a list. Like this:
import requests
from bs4 import BeautifulSoup as soup
html = requests.get('https://mars.nasa.gov/mars2020/weather/')
html.status_code
marsDat= []
for date in bsobj.findAll('span', {'class':'marsDate'}):
marsDat.append(date.text.strip())
print(marsDat)
#returns: ['']
Can someone give me a hint? It is happening because we can't do web scraping on this site?