I have a webpage that I am scraping using Beautiful Soup. I've got the HTML, but now I need the CSS. I have tried using soup.findAll('link', {'rel': 'stylesheet'})
but I can figure out how to get the filename from the 1st index of the returned list, <link href="styles.css" rel="stylesheet"/>
I have tried using regex, which I'm not very good at, but I'm not sure how to get it to work.
So, is there a BeautifulSoup function that I can use or do I have to go the route I'm already taking?