r/stackoverflow • • Jan 30 '19

Scraping CSS (python)

Hey all,

I know with BeautifulSoup and other modules we can scrape websites for HTML content. While this is great, I'm wondering if we can also grab the CSS of a site. I did not see this on the BS4 site.

Is it possible to scrape the CSS of a site? Any help or documentation links would be greatly appreciated.

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Zendakin_at_work Feb 01 '19

Thanks, it actually gets worse than I expected.

This is a mock site so not live and it's been converted to a png. So unless someone knows how to grab CSS from an image file, this question is moot now.

Thanks anyway, I do appreciate it.

1

u/FrankHennessy Feb 01 '19

Well, you could always hire someone to create a doc and stylesheet that recreates what is shown in the png :D