{"id":13424490,"url":"https://github.com/malina/metascraper","last_synced_at":"2025-03-15T18:35:15.703Z","repository":{"id":82358129,"uuid":"65192790","full_name":"malina/metascraper","owner":"malina","description":"Metascraper is a Crystal library  for web scraping.","archived":false,"fork":false,"pushed_at":"2018-03-16T11:55:43.000Z","size":21,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-01T00:41:26.222Z","etag":null,"topics":["crystal","scrape","scraped-data"],"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/malina.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":"2016-08-08T09:48:03.000Z","updated_at":"2021-12-13T16:30:05.000Z","dependencies_parsed_at":"2023-03-03T01:15:41.312Z","dependency_job_id":null,"html_url":"https://github.com/malina/metascraper","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/malina%2Fmetascraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malina%2Fmetascraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malina%2Fmetascraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malina%2Fmetascraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malina","download_url":"https://codeload.github.com/malina/metascraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221601421,"owners_count":16850349,"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":["crystal","scrape","scraped-data"],"created_at":"2024-07-31T00:00:55.108Z","updated_at":"2024-10-26T23:31:28.462Z","avatar_url":"https://github.com/malina.png","language":"Crystal","funding_links":[],"categories":["Crystal"],"sub_categories":[],"readme":"# metascraper\n\nMetascraper is a little lib for web scraping purposes.\n\nYou give it an URL, and it lets you easily get its title, images, description, videos.\n\n## Installation\n\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  metascraper:\n    github: malina/metascraper\n```\n\n\n## Usage\n\n\n```crystal\nrequire \"metascraper\"\n```\n\n\nInitialize a Metascraper instance for an URL, like this:\n\n```crystal\npage = Metascraper.new(\"https://github.com/malina/metascraper\")\n\nputs page.title\n```\n\n## Accessing scraped data\n\n```crystal\npage.url                 # URL of the page\npage.images              # enumerable collection, with every img found on the page\npage.title               # title of the page from the head section, as string\npage.description         # returns the meta description, or the first long paragraph if no meta description is found\npage.content             # primary readability page content\n```\n\nYou can also access most of the scraped data as a hash:\n```crystal\n  page.to_hash\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/malina/metascraper/fork )\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- [malina](https://github.com/malina) Alexandr Shumov - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalina%2Fmetascraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalina%2Fmetascraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalina%2Fmetascraper/lists"}