{"id":31058434,"url":"https://github.com/marcelmay/g-har","last_synced_at":"2025-09-15T07:51:01.682Z","repository":{"id":19901515,"uuid":"23166717","full_name":"marcelmay/g-har","owner":"marcelmay","description":"Groovy HAR helper","archived":false,"fork":false,"pushed_at":"2014-09-21T20:38:45.000Z","size":364,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-11T16:37:12.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcelmay.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":"2014-08-20T22:46:35.000Z","updated_at":"2022-06-21T14:01:41.000Z","dependencies_parsed_at":"2022-08-26T22:00:49.154Z","dependency_job_id":null,"html_url":"https://github.com/marcelmay/g-har","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"purl":"pkg:github/marcelmay/g-har","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelmay%2Fg-har","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelmay%2Fg-har/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelmay%2Fg-har/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelmay%2Fg-har/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelmay","download_url":"https://codeload.github.com/marcelmay/g-har/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelmay%2Fg-har/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275225867,"owners_count":25427000,"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","status":"online","status_checked_at":"2025-09-15T02:00:09.272Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-15T07:50:57.580Z","updated_at":"2025-09-15T07:51:01.668Z","avatar_url":"https://github.com/marcelmay.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"A HAR (HTTP Archive) Helper\n---------------------------\n\ng-har helps working with [HAR](http://www.softwareishard.com/blog/har-12-spec/) files.\n\nSupports\n\n *   parsing of JSON HAR content provided as input stream or file\n *   easily processing of HAR structure, including navigation helper for related pages and entries\n *   cloning for duplication\n *   appending several HARs into a single archive\n *   basic HAR validation support\n\nGroovy example\n--------------\n```groovy\n@Grab('de.m3y.ghar:g-har:1.0')\n@GrabResolver(name='bintray', root='http://dl.bintray.com/marcel-may/maven/')\n\nimport de.m3y.ghar.Har\n\nnew File('src/test/resources/softwareishard.com.har').withInputStream{\n   har = Har.open(it)\n\n   // content references the parsed JSON directly\n   assert har.log.pages.size() == 2 \n\n   // Some helpers\n   assert har.pageIds() == ['page_46155', 'page_26935']\n   assert har.entries('page_46155').size() == 20\n   har.validate() // Validations using assertions\n\n   // Print all URLs\n   har.pageIds().each { pageId -\u003e\n       har.entries(pageId).each {\n           println( it.request.url )\n       }\n   }\n\n   // Manipulate title\n   har.pages().each{ page -\u003e\n     page.title = page.id + ' ' + page.title\n   }\n   \n   // Clone and append\n   Har har2 = har.clone()\n   har2.mapPageIds{ it + '_new' } // page_001 =\u003e page_001_new\n   har.append(har2)\n\n   // Save as har\n   new File('foo.har') \u003c\u003c har.toJson()\n   new File('bar.har') \u003c\u003c har.toPrettyJson()\n}\n```\n\nBuilding from source\n--------------------\n\n### Gradle\n\n  The project requires Gradle for building from source. If you do not have Gradle installed yet, have a look at\n  the [Gradle homepage](http://gradle.org).\n\n\n### Compiling and creating JARs\n\nTo compile and create the JARs, run\n\n```gradle clean test codenarcMain codenarcTest install```\n\n\nLicense\n-------\n[Apache License, Version 2.0](LICENSE)\n\nHAR sample files are from the excellent [HAR Viewer](https://github.com/janodvarko/harviewer) project and are under [New BSD license](https://code.google.com/p/harviewer/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelmay%2Fg-har","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelmay%2Fg-har","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelmay%2Fg-har/lists"}