{"id":17689968,"url":"https://github.com/pystardust/shup","last_synced_at":"2025-05-13T01:04:33.482Z","repository":{"id":51208366,"uuid":"357561110","full_name":"pystardust/shup","owner":"pystardust","description":"A POSIX shell script to parse HTML","archived":false,"fork":false,"pushed_at":"2021-05-20T06:31:20.000Z","size":22,"stargazers_count":40,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T11:02:39.331Z","etag":null,"topics":["html","posix","scraping","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pystardust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-13T13:20:53.000Z","updated_at":"2025-03-09T11:23:09.000Z","dependencies_parsed_at":"2022-09-23T02:21:07.956Z","dependency_job_id":null,"html_url":"https://github.com/pystardust/shup","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/pystardust%2Fshup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pystardust%2Fshup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pystardust%2Fshup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pystardust%2Fshup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pystardust","download_url":"https://codeload.github.com/pystardust/shup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246588654,"owners_count":20801515,"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":["html","posix","scraping","shell"],"created_at":"2024-10-24T11:49:29.486Z","updated_at":"2025-04-01T12:30:35.846Z","avatar_url":"https://github.com/pystardust.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shup\n\nSimple HTML parser in shell.\n\n- Requires\n\t* POSIX shell\n\t* sed\n\n## Installation\n    \nTo install `shup` you can edit the `Makefile` to match your local setup (`shup` is installed into the `/usr/local/bin` by default).\n\nAfterwards enter the following command to install `shup`:\n\n```sh\nsudo make install\n```\n\nTo uninstall `shup`, just run:\n\n```sh\nsudo make uninstall\n```\n\n## Usage\n\n\t\n```sh\nUSAGE: shup [OPTIONS] [\"FILTER1\" \"FILTER2\" ...]\n  -h                 show this help\n  -v                 show version\n  -r                 raw: last filter tag will not be shown\n  -t                 text: no tags will be shown\n  -o   \"string\"      specify output indentation\n\nFILTER FORMAT: \"\u003ctagname\u003e\"  or  \"\u003ctagname\u003e[\u003csearch string\u003e]\"\n    the search string should be present in the tag line\n  EXAMPLE\n    to match all div tags\n         shup \"div\"\n    to match div tags with some string\n         shup \"div[Qynugf]\"\n    will match : \u003cdiv class=\"Qynugf\"\u003e\n\n    The string could be present anywhere inside the tags body \u003c.\u003e\n    Patterns can be specified in the string using shell patterns\n         shup \"div[Qy?*[!h]f]\"\n When no filters applied, shup will only format the HTML\n```\n\n## Example\n\n```sh\ncurl -s \"www.gnu.org\" | shup -r \"body\" \"div[inner]\" \"ul\" \"li[[pP]hilo]\" \"a\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpystardust%2Fshup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpystardust%2Fshup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpystardust%2Fshup/lists"}