import requests
from bs4 import BeautifulSoup
import pandas as pd
import re
start_url = 'https://www.example.com'
downloaded_html = requests.get(start_url)
soup = BeautifulSoup(downloaded_html.text, "lxml")
full_header = soup.select('div.reference-image')
full_header
The Output of the above code is;
[<div class="reference-image"><img src="Content/image/all/reference/c101.jpg"/></div>,
<div class="reference-image"><img src="Content/image/all/reference/c102.jpg"/></div>,
<div class="reference-image"><img src="Content/image/all/reference/c102.jpg"/></div>]
I would like to extract the img src
content as below;
["Content/image/all/reference/c101.jpg",
"Content/image/all/reference/c102.jpg",
"Content/image/all/reference/c102.jpg"]
How can I extract it?