{"id":19583951,"url":"https://github.com/rishavs/crog","last_synced_at":"2026-06-13T17:32:20.488Z","repository":{"id":147879222,"uuid":"147199250","full_name":"rishavs/crog","owner":"rishavs","description":"A crystal metaparsing library","archived":false,"fork":false,"pushed_at":"2018-09-05T17:50:03.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T12:31:14.172Z","etag":null,"topics":["crystal","crystal-language","metaparser","open-graph","opengraph"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/rishavs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-03T12:04:09.000Z","updated_at":"2021-01-04T11:42:08.000Z","dependencies_parsed_at":"2023-03-30T15:49:34.282Z","dependency_job_id":null,"html_url":"https://github.com/rishavs/crog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishavs/crog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavs%2Fcrog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavs%2Fcrog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavs%2Fcrog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavs%2Fcrog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishavs","download_url":"https://codeload.github.com/rishavs/crog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishavs%2Fcrog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34294411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["crystal","crystal-language","metaparser","open-graph","opengraph"],"created_at":"2024-11-11T07:45:57.435Z","updated_at":"2026-06-13T17:32:20.473Z","avatar_url":"https://github.com/rishavs.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crog\n\nCrog is a simple Crystal library to parse up the Open Graph meta data for web pages.\nIf you have ever wondered how does sites like Reddit, Facebook etc fetch the relevant images and other \nmetadata from 3rd party sites, this is it.\n\nSpecial thanks to https://metascraper.js.org/\nwhose rules i referenced throughout my development.\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  crog:\n    github: rishavs/crog\n```\n\n## Usage\n\n```crystal\nrequire \"crog\"\n```\n\nTo use the library, simple call the Parse method as;\n````\nmdata = Crog::Parse.new(url)\n````\nthe variable here will hold an object with attributes;\n````\n            property image :        String | Nil = nil\n            property image_width :  Int32 | Nil = nil\n            property image_height : Int32 | Nil = nil\n            property url :          String | Nil = nil\n            property description :  String | Nil = nil\n            property title :        String | Nil = nil\n            property author :       String | Nil = nil\n            property date :         String | Nil = nil\n            property logo :         String | Nil = nil\n            property tags         = [] of String\n````\n\n\n## Development\n\nA lot of edge cases are not yet picked up. I have left them in the crog.cr file for future reference.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/your-github-user/crog/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Rishav](https://github.com/rishavs) Rishav Sharan - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishavs%2Fcrog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishavs%2Fcrog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishavs%2Fcrog/lists"}