Python Forum
Scraping div tags with selenium, need help - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Scraping div tags with selenium, need help (/thread-39579.html)



Scraping div tags with selenium, need help - hfakoor2 - Mar-12-2023

I do not know how to scrape
<div data-type="events"


here:
[Image: m4T0pH4]



here's part of the the outer HTML
<div data-type="events" data-recid="37804" data-sv-adstyle="recid" data-sv-adrecid="37804" data-gtm-vars="{&quot;tCore&quot;:


is there a way to scrape
<div data-type="events"


Thank you


RE: Scraping div tags with selenium, need help - hfakoor2 - Mar-12-2023

(Mar-12-2023, 07:34 AM)hfakoor2 Wrote: I do not know how to scrape
<div data-type="events"


here:
[Image: m4T0pH4]



here's part of the the outer HTML
<div data-type="events" data-recid="37804" data-sv-adstyle="recid" data-sv-adrecid="37804" data-gtm-vars="{&quot;tCore&quot;:


is there a way to scrape
<div data-type="events"


Thank you





I figured it out using XPATH. Thread can be closed. Thank you. Just realised the image is broken.