{"id":15931461,"url":"https://github.com/ckolderup/lucky","last_synced_at":"2025-10-11T07:39:50.890Z","repository":{"id":137142113,"uuid":"642557","full_name":"ckolderup/lucky","owner":"ckolderup","description":"Simple Ruby script to make a Google web search query and return the top hit in various formats.","archived":false,"fork":false,"pushed_at":"2010-05-06T01:30:19.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-26T00:44:18.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ckolderup.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-05-02T13:37:06.000Z","updated_at":"2013-12-24T04:00:36.000Z","dependencies_parsed_at":"2023-03-11T00:36:08.456Z","dependency_job_id":null,"html_url":"https://github.com/ckolderup/lucky","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ckolderup/lucky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckolderup%2Flucky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckolderup%2Flucky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckolderup%2Flucky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckolderup%2Flucky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckolderup","download_url":"https://codeload.github.com/ckolderup/lucky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckolderup%2Flucky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006626,"owners_count":26084131,"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-10-11T02:00:06.511Z","response_time":55,"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":"2024-10-07T01:21:13.340Z","updated_at":"2025-10-11T07:39:50.867Z","avatar_url":"https://github.com/ckolderup.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"lucky.rb outputs a link to the top hit on Google for a given search string. I wrote it to use in MacOS X with Automator + Services so that I could have a global keyboard shortcut that would replace a string with its \"I'm Feeling Lucky\" result-- handy for writing blog posts, comments, etc.\n\nUsage: lucky.rb [options] query1 query2 ...\n        --credentials FILE           A file containing a Google API key and referrer URL\n    -f, --format FORMAT              The output format (url, html, or markdown)\n    -k, --key KEY:URL                API key and referrer URL (overrides credentials file)\n    -h, --help                       Display this screen\n\n\nTo use lucky.rb, you'll need to have an API key to use the AJAX API.\nYou can get one here: http://code.google.com/apis/ajaxsearch/signup.html\n\nBy default, lucky.rb looks for your credentials in ~/.google_key in the following format:\nline 1: API key\nline 2: the \"website URL\" you entered when signing up\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckolderup%2Flucky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckolderup%2Flucky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckolderup%2Flucky/lists"}