Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/projectwallace/extract-css
Extract all CSS from a webpage, packaged as a Now V2 Lambda
https://github.com/projectwallace/extract-css
css function get-css lambda scraper serverless
Last synced: about 1 month ago
JSON representation
Extract all CSS from a webpage, packaged as a Now V2 Lambda
- Host: GitHub
- URL: https://github.com/projectwallace/extract-css
- Owner: projectwallace
- License: mit
- Created: 2019-02-14T20:34:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T11:10:22.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T09:58:51.035Z (10 months ago)
- Topics: css, function, get-css, lambda, scraper, serverless
- Language: JavaScript
- Homepage: https://www.projectwallace.com/get-css
- Size: 293 KB
- Stars: 27
- Watchers: 4
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
Extract CSS
Get all the CSS from a webpage.
## The problem
The folks from [CSS Stats](https://cssstats.com/) have created [get-css](https://github.com/cssstats/cssstats/tree/master/packages/get-css), a package to get all the CSS from a given webpage. One downside, however, is that it only works for server side rendered applications.
## The solution
This package uses an actual browser under the hood to get all the CSS and exposes an HTTP endpoint that accepts a url to get the CSS from. [Read all about it in this blog post on ProjectWallace.com](https://www.projectwallace.com/blog/extracting-css-from-webpage).
## Credits
- This repo is pretty much an exact copy of [this example from Zeit](https://github.com/zeit/now-examples/tree/master/puppeteer-screenshot).
- The idea to get all the CSS from a webpage comes from [CSS Stats](https://github.com/cssstats/cssstats)