python selenium, cant retrieve text of xpath

Issue Im struggling with scraping a few pages … it happens when the structure of the page implies a lot of nested divs… Here is the code page: <div> <section class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons" role="tab" id="ui-id-1" aria-controls="ui-id-2" aria-selected="false" aria-expanded="false" tabindex="0"><span

Continue reading

Specifying a html nest structure in Python

Issue I am trying to scrape data from the following website https://www.ecfr.gov/on/2022-04-08/title-21/chapter-I/subchapter-E/part-556/subpart-B/section-556.50 Note that there is a nest structure (Tolerances -> Cattle -> Liver and muscle). This is also one of many sections in this legislation. There is a "Developer

Continue reading

Specifying a html nest structure in Python

Issue I am trying to scrape data from the following website https://www.ecfr.gov/on/2022-04-08/title-21/chapter-I/subchapter-E/part-556/subpart-B/section-556.50 Note that there is a nest structure (Tolerances -> Cattle -> Liver and muscle). This is also one of many sections in this legislation. There is a "Developer

Continue reading