Hi I know there's questions already pertaining to this but I do not have enough experience to figure it out. I am trying to write a simple script in Python that periodically checks the earliest available date on a DMV website. Where I live, the DMV is backed up for months and after just failing a drivers test - I want to snag the earliest available date when somebody cancels their appointment.
Anyways, here is the HTML I am trying to grab from:
<div _ngcontent-glu-c19="" class="department-appointment-header">Earliest date:</div>
<br _ngcontent-glu-c19="">
<div _ngcontent-glu-c19="">
Monday
</div>
<div _ngcontent-glu-c19="">
May 31st
</div>
</div>
Now, I am trying to grab that May 31st date so I can compare it with an Earliest Date variable that continuously updates when there is a sooner date than the existing one. Eventually I will have Python notify me by text. I can't figure out how to retrieve the May 31st element and assign it to a string variable or list, so I can convert the month/day to an integer between 1 - 365.
Please I'm new to Selenium and I haven't touched Python in awhile, I'm quite rusty and all help would be appreciated. If you need more of the HTML code then let me know I'll add more, I just didnt want to fill this entire page.