{"id":18778451,"url":"https://github.com/csstree/real-web-css","last_synced_at":"2025-04-13T10:33:10.088Z","repository":{"id":18189249,"uuid":"83674684","full_name":"csstree/real-web-css","owner":"csstree","description":"Use CSSTree to test a real site CSS and collect a data","archived":false,"fork":false,"pushed_at":"2024-09-04T14:29:30.000Z","size":15106,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T08:39:14.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://csstree.github.io/real-web-css/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-02T12:21:21.000Z","updated_at":"2024-10-17T17:38:31.000Z","dependencies_parsed_at":"2023-01-11T20:28:18.974Z","dependency_job_id":null,"html_url":"https://github.com/csstree/real-web-css","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstree%2Freal-web-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstree%2Freal-web-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstree%2Freal-web-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstree%2Freal-web-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstree","download_url":"https://codeload.github.com/csstree/real-web-css/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223488023,"owners_count":17153481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:16:19.919Z","updated_at":"2024-11-07T20:16:20.513Z","avatar_url":"https://github.com/csstree.png","language":"JavaScript","readme":"# Real Web CSS\n\nReal site's CSS usage data analysis. Powered by [CSSTree](https://github.com/csstree/csstree) \u0026 [Discoveryjs](https://github.com/discoveryjs/discovery)\n\n[Real Web CSS](https://csstree.github.io/real-web-css/)\n\n## How to use locally\n\n1. Download [The Majestic Million](https://majestic.com/reports/majestic-million)'s site list and make a top of site (output `data/sites.csv`):\n\n    ```\n    npm run sync:sites\n    ```\n\n1. Download a top site's CSS (output `data/css/*.css`):\n\n    ```\n    npm run download:css\n    ```\n\n    \u003e If something goes wrong on CSS downloading (freezing, network issue or errors on console), you can abort the process. Downloading will continue from the last successful processed site. You can set the start site by editing `data/idx.txt` file (if file doesn't exist downloading is start from the first one), which contains just a single number – site index.\n\n    You can specify a number of sites to be used for CSS downloading (25 by default):\n\n    ```\n    npm run download:css 100\n    ```\n\n1. Extract data from downloaded CSS (output `data/test-results.json`):\n\n    ```\n    npm test\n    ```\n\n1. Discover data\n\nThere are two options:\n\n- Run a server that provides user interface:\n\n    ```\n    npm start\n    ```\n\n- Build static version (no server is required, see report in `build` folder):\n\n    ```\n    npm run build\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstree%2Freal-web-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstree%2Freal-web-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstree%2Freal-web-css/lists"}