I am working on a webscrape script. The pandas data frame that is generated is fantastic however I need to add a unique_id column with the value of a href URL contained in the HTML.
<td><a href="/admin/tasks/edit/82689"> ADDRESS </a> CLIENT </td>
Currently the Pandas data frame has a column containing 'ADDRESS CLIENT' but how can I add a seperate column containing the href URL?
I am currently able to get a comma separated list of the unique_id values using the following:
unique_id = [a['href'] for a in table.select('a[href]')]
any direction would be much appreciated!