{"id":20283062,"url":"https://github.com/sarartur/liquidcss","last_synced_at":"2025-04-11T08:22:08.026Z","repository":{"id":62576325,"uuid":"319518297","full_name":"sarartur/liquidcss","owner":"sarartur","description":"Python package for altering CSS selector names across CSS, HTML and JavaScript files.","archived":false,"fork":false,"pushed_at":"2020-12-27T00:00:45.000Z","size":104,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T05:51:21.499Z","etag":null,"topics":["css","html","python","python-library","scraping","scraping-websites","webdev","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarartur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-08T03:47:45.000Z","updated_at":"2020-12-27T00:00:47.000Z","dependencies_parsed_at":"2022-11-03T17:34:51.111Z","dependency_job_id":null,"html_url":"https://github.com/sarartur/liquidcss","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/sarartur%2Fliquidcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarartur%2Fliquidcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarartur%2Fliquidcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarartur%2Fliquidcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarartur","download_url":"https://codeload.github.com/sarartur/liquidcss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248360970,"owners_count":21090793,"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":["css","html","python","python-library","scraping","scraping-websites","webdev","webdevelopment"],"created_at":"2024-11-14T14:12:58.730Z","updated_at":"2025-04-11T08:22:07.988Z","avatar_url":"https://github.com/sarartur.png","language":"Python","readme":"# LiquidCSS\nCommand line tool for hashing selector names across CSS, HTML and JavaScript files.\n### Description \u0026 Implementation\nThe tool makes most scraping robots obsolete by dynamically hashing all selectors across the entire infrastructure of a web application. Most scraping tools \nachieve their objective by hooking onto certain HTML selector names in the response document. LiquidCSS offers up a way to counter act this approach by changing the selector names without breaking any of the functionality or appearance of the web application. \n\n\nInstall the package with: ```pip install liquidcss``` \\\nhttps://pypi.org/project/liquidcss/\n### Usage\nTo begin using the tool first create a WorkSpace: ```liquid init``` \\\nRegister files to the WorkSpace either individually or by specifying a ```txt``` document containing a list of paths: \\\n```liquid grab /path/to/file``` or ```liquid grab -r paths.txt```\nOnce files are registered, view their status inside the WorkSpace:```liquid status -a```\n```\n[ID: 0]\n    name: sample001.css\n    path: /example/original/sample001.css\n    type: css\n    hash: 603706f3aa0a9b7779fca2acd29d4b8e5a68796f846f955c6ac6e72b6f13081a\n    staged: True\n    deployed: False\n\n```\nHash the selector names across all registered files: ```liquid stage -a```\n\n\n**The selector names will be hashed only if they are present in the CSS files registered in the workspace.**\nThe files are now ready to be deployed. The deploy command will swap the files at the registered paths with the hashed files and create\na backup of the original files:```liquid deploy -a```\n\n\nReverse the deployment of the files with hashed selectors and replace them with files stored in backup: ```liquid deploy -a -r```\n\n\n**JavaScript files registered with the WorkSpace can only contain ```const``` or ```var``` key words and only the selector names as strings include the ```.``` or the ```#```.** See the examples in the example folder.\n\nMore extensive documentation and further features are in development.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarartur%2Fliquidcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarartur%2Fliquidcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarartur%2Fliquidcss/lists"}