{"id":19626135,"url":"https://github.com/konstantine-v/crwikilib","last_synced_at":"2025-08-11T04:08:42.283Z","repository":{"id":226090951,"uuid":"237571361","full_name":"konstantine-v/CrWikiLib","owner":"konstantine-v","description":"WIP - Wrapper for Wikipedia API for use in Crystal","archived":false,"fork":false,"pushed_at":"2020-02-17T20:35:48.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T21:02:26.839Z","etag":null,"topics":["crystal","crystal-lang","shard","wikipedia"],"latest_commit_sha":null,"homepage":"","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/konstantine-v.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}},"created_at":"2020-02-01T06:11:11.000Z","updated_at":"2022-10-12T23:40:58.000Z","dependencies_parsed_at":"2024-03-05T21:00:54.203Z","dependency_job_id":null,"html_url":"https://github.com/konstantine-v/CrWikiLib","commit_stats":null,"previous_names":["konstantine-v/crwikilib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/konstantine-v/CrWikiLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantine-v%2FCrWikiLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantine-v%2FCrWikiLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantine-v%2FCrWikiLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantine-v%2FCrWikiLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/konstantine-v","download_url":"https://codeload.github.com/konstantine-v/CrWikiLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/konstantine-v%2FCrWikiLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269827746,"owners_count":24481558,"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-08-11T02:00:10.019Z","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":["crystal","crystal-lang","shard","wikipedia"],"created_at":"2024-11-11T11:45:04.429Z","updated_at":"2025-08-11T04:08:42.219Z","avatar_url":"https://github.com/konstantine-v.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wiki::Library\nCurrently WIP, but this project works. \n\nI wrapper for the Wikipedia and Wikimedia API to get commonly used things.\n\nIt's constantly changing, but my main focus is working on new features and making QOL changes to make it nicer to work with.\n\n## Installation\nInstall as a shard by including in your `shards.yml`\n```crystal\ndependencies:\n  crwikilib:\n    github: MaterialFuture/CrWikiLib\n```\nAfter adding remember to run `shards` to install and be able to use in your project\n\n## Usage\nRefer to `examples/` directory for examples of use.\n\nTo get the page in a data format use the following:\n```Ruby\nputs Wiki::Page.new(\"https\", \"Crystal_(programming_language)\", \"json\")\n```\n\nTo get the page as a PDF for download use the following:\n```Ruby\nputs Wiki::Page.pdf(\"https\", \"Crystal_(programming_language)\")\n```\n\nTo get the Post of the Day use the following code: (date in ISO format)\n```Ruby\nWiki::POTD.new(\"HTTPS\", potd_date, \"json\")\n```\n\nI made it so you can specify protocol, that way if you're not required HTTP or HTTPS, you dsecide.\n\n## Development\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/materialfuture/wiki-api/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- [MaterialFuture](https://github.com/materialfuture) - creator and maintainer\n\n\n## Notes\n\n- Example PDF Request to Rest API: \u003chttps://en.wikipedia.org/api/rest_v1/page/pdf/Rust_(programming_language)\u003e\n\n#### TODO\n\n- Look into adding Admiral Shard\n- Look into adding functionality for reading txt file for bulk downloads for PDFs\n- Breakout URLs for so they're more reusable","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonstantine-v%2Fcrwikilib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkonstantine-v%2Fcrwikilib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkonstantine-v%2Fcrwikilib/lists"}