Jun-19-2024, 05:45 PM
I don't see a single div with class 'media' in the source.
If you just choose one sub-page, say the first with title that starts with "CMS Could Strengthen Program"
you will note the surrounding html has
This pattern repeats for each report on the page,
thus:
1. find all divs with class="USA-card__container"
2. then get the link div.header.h2.a
3. get the page for download page from the 'href' tag.
4. wait for page to load
5. locate the PDF and download
I do not see any csv files.
If you just choose one sub-page, say the first with title that starts with "CMS Could Strengthen Program"
you will note the surrounding html has
- Section starts with div:
<div class="USA-card__container">
- followed by a header, an h2 header, and a link
This pattern repeats for each report on the page,
thus:
1. find all divs with class="USA-card__container"
2. then get the link div.header.h2.a
3. get the page for download page from the 'href' tag.
4. wait for page to load
5. locate the PDF and download
I do not see any csv files.