Here is the HTML from the website:
Unique sequence file:
<a href="/cgi-bin/elimdupesv2/elimdupes.cgi?id=4ROEFYUD&output=unique_default.Fasta">View</a>
<a href="/cgi-bin/elimdupesv2/elimdupes.cgi?id=4ROEFYUD&download=unique_default.Fasta">Download</a>
What's displayed:
Unique sequence file: View Download
The download link changes every run because a different file is produced. How should I extract the URL and save it into a variable to download the file? I tried this but it didn't work:
class Example(BaseCase):
def test_(self):
...
url = self.find_link_text('Download', timeout=None).get_link_attribute()
self.download_file(file_url, destination_folder=None)
Thanks a bunch in advance.