Sep-22-2021, 02:49 PM
I scraped a list of links of topo maps of mi.
The list is only half the link.
The first part of the link is "http://www.dnr.state.mi.us" is not on the list
This have to be added to each link.
The list looks like this:
links
/spatialdatalibrary/pdf_maps/topomaps/Adair.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adams_Park.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adams_Point.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adamsville.pdf
/spatialdatalibrary/pdf_maps/topomaps/Addis_Creek.pdf
/spatialdatalibrary/pdf_maps/topomaps/Addison.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adrian.pdf
I need each link to look like this
(____this part is added___) to the list.
http://www.dnr.state.mi.us/spatialdatali.../Adair.pdf
I am using windows 7 and python 3.7
I hope their a way of doing this.
Thank you
Renny
The list is only half the link.
The first part of the link is "http://www.dnr.state.mi.us" is not on the list
This have to be added to each link.
The list looks like this:
links
/spatialdatalibrary/pdf_maps/topomaps/Adair.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adams_Park.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adams_Point.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adamsville.pdf
/spatialdatalibrary/pdf_maps/topomaps/Addis_Creek.pdf
/spatialdatalibrary/pdf_maps/topomaps/Addison.pdf
/spatialdatalibrary/pdf_maps/topomaps/Adrian.pdf
I need each link to look like this
(____this part is added___) to the list.
http://www.dnr.state.mi.us/spatialdatali.../Adair.pdf
I am using windows 7 and python 3.7
I hope their a way of doing this.
Thank you
Renny