{"id":22295602,"url":"https://github.com/satoryu/kamikiri","last_synced_at":"2025-03-25T22:28:30.323Z","repository":{"id":139543037,"uuid":"226516379","full_name":"satoryu/kamikiri","owner":"satoryu","description":"Kamikiri is a command-line XML/HTML processor to extract parts of a given XML/HTML document.","archived":false,"fork":false,"pushed_at":"2021-07-17T05:16:25.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T19:48:02.510Z","etag":null,"topics":["cli","xml-processing","xpath"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/satoryu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-07T13:17:52.000Z","updated_at":"2021-07-17T05:16:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"b617fec7-3116-4371-b482-e4ff59007443","html_url":"https://github.com/satoryu/kamikiri","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoryu%2Fkamikiri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoryu%2Fkamikiri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoryu%2Fkamikiri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/satoryu%2Fkamikiri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/satoryu","download_url":"https://codeload.github.com/satoryu/kamikiri/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245552987,"owners_count":20634286,"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":["cli","xml-processing","xpath"],"created_at":"2024-12-03T17:42:35.838Z","updated_at":"2025-03-25T22:28:30.298Z","avatar_url":"https://github.com/satoryu.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kamikiri\n\nKamikiri is a command-line XML/HTML processor to extract parts of a given XML/HTML document.\n\n## Installation\n\n    gem install kamikiri\n\n## Usage\n\nThis cli requires two options, `--file` and `--xpath`:\n\n    kamikiri --file /path/to/xml/file.xml --xpath '//foo/bar'\n\nHere is an example to extract CD informatoin whose price is higher than $10 and released in 1990s from [the catalog](https://www.w3schools.com/xml/cd_catalog.xml):\n\n    $ kamikiri --file https://www.w3schools.com/xml/cd_catalog.xml --xpath '//CD[PRICE \u003e 10.0][YEAR \u003e= 1990]'\n    \u003cCD\u003e\n    \u003cTITLE\u003eStill got the blues\u003c/TITLE\u003e\n    \u003cARTIST\u003eGary Moore\u003c/ARTIST\u003e\n    \u003cCOUNTRY\u003eUK\u003c/COUNTRY\u003e\n    \u003cCOMPANY\u003eVirgin records\u003c/COMPANY\u003e\n    \u003cPRICE\u003e10.20\u003c/PRICE\u003e\n    \u003cYEAR\u003e1990\u003c/YEAR\u003e\n    \u003c/CD\u003e\n    \u003cCD\u003e\n    \u003cTITLE\u003eOne night only\u003c/TITLE\u003e\n    \u003cARTIST\u003eBee Gees\u003c/ARTIST\u003e\n    \u003cCOUNTRY\u003eUK\u003c/COUNTRY\u003e\n    \u003cCOMPANY\u003ePolydor\u003c/COMPANY\u003e\n    \u003cPRICE\u003e10.90\u003c/PRICE\u003e\n    \u003cYEAR\u003e1998\u003c/YEAR\u003e\n    \u003c/CD\u003e\n    \u003cCD\u003e\n    \u003cTITLE\u003eRomanza\u003c/TITLE\u003e\n    \u003cARTIST\u003eAndrea Bocelli\u003c/ARTIST\u003e\n    \u003cCOUNTRY\u003eEU\u003c/COUNTRY\u003e\n    \u003cCOMPANY\u003ePolydor\u003c/COMPANY\u003e\n    \u003cPRICE\u003e10.80\u003c/PRICE\u003e\n    \u003cYEAR\u003e1996\u003c/YEAR\u003e\n    \u003c/CD\u003e\n    \u003cCD\u003e\n    \u003cTITLE\u003eBlack angel\u003c/TITLE\u003e\n    \u003cARTIST\u003eSavage Rose\u003c/ARTIST\u003e\n    \u003cCOUNTRY\u003eEU\u003c/COUNTRY\u003e\n    \u003cCOMPANY\u003eMega\u003c/COMPANY\u003e\n    \u003cPRICE\u003e10.90\u003c/PRICE\u003e\n    \u003cYEAR\u003e1995\u003c/YEAR\u003e\n    \u003c/CD\u003e\n    \u003cCD\u003e\n    \u003cTITLE\u003e1999 Grammy Nominees\u003c/TITLE\u003e\n    \u003cARTIST\u003eMany\u003c/ARTIST\u003e\n    \u003cCOUNTRY\u003eUSA\u003c/COUNTRY\u003e\n    \u003cCOMPANY\u003eGrammy\u003c/COMPANY\u003e\n    \u003cPRICE\u003e10.20\u003c/PRICE\u003e\n    \u003cYEAR\u003e1999\u003c/YEAR\u003e\n    \u003c/CD\u003e\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/satoryu/kamikiri. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Kamikiri project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/satoryu/kamikiri/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatoryu%2Fkamikiri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsatoryu%2Fkamikiri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsatoryu%2Fkamikiri/lists"}