I'm trying scrape data about complaints on a website. Each complaint shows the time difference between the time complaint was posted and the current time (e.g. 10 hours ago, 2 days ago, etc.). I'm able to scrape that value but I need to get the exact date because the website only shows the date for old complaints.
I scrape the time difference (marked with yellow) with the following code:
url = 'https://www.sikayetvar.com/sikayetler?brand=bosch&page=1'
r = requests.get(url, headers={"User-Agent":"Mozilla/5.0"})
soup1 = bs(r.content, 'lxml')
dates = soup.find_all("span", {"class":"info-icn time-tooltip"})
print(dates[0].text)
1 saat önce
print(dates[0])
<span class="info-icn time-tooltip" data-placement="top" data-toggle="tooltip" title="03 Haziran 12:09"><span class="time-history">1 saat önce</span></span>
But, I need the actual date the complaint was posted (circled with red).
Thanks in advance for your tips and suggestions.