I want to extract date from one html tag. I'm using Python and Beautiful Soup.
<meta name="Email" content="info@info.de">
<meta name="Date" content="2021-04-28T20:35:00+02:00">
<meta name="title" content="Tris is tite">
I want to extract only date, so this should be result: 2021-04-28T20:35:00+02:00
I know that I can do it like this:
tag = "meta['Date']"
date = soup.select(tag)
date = date['content']
But is is possible to do that only with one css selector, only with tag value? For example, something like this?
tag = "meta['Date']['content']" # or something like this?
date = soup.select(tag)
print(date)
2021-04-28T20:35:00+02:00
PS
I have to use soup.select, soup.find(...) and soup.select_one does not work for me.
So only soup.select works!