Another Way To Retrieve "note_urls"
Somehow, I manage to retrieve the "note_urls" in just 1 list comprehension, here's the code:
note_urls = [urljoin(url, j.get('href')) for i in div_notes for j in i.find_all('a')]
not sure about it's a good practice or not...just some sharing. Thanks!
0 answers ( 0 marked as helpful)