{"id":24761706,"url":"https://github.com/driebit/mod_ginger_opensearch","last_synced_at":"2025-03-23T13:16:17.806Z","repository":{"id":29319847,"uuid":"32853308","full_name":"driebit/mod_ginger_opensearch","owner":"driebit","description":"Zotonic module for searching OpenSearch APIs","archived":false,"fork":false,"pushed_at":"2015-04-22T13:47:59.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-01-28T19:18:42.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/driebit.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":"2015-03-25T09:01:01.000Z","updated_at":"2015-04-22T13:47:59.000Z","dependencies_parsed_at":"2022-09-20T18:01:27.249Z","dependency_job_id":null,"html_url":"https://github.com/driebit/mod_ginger_opensearch","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/driebit%2Fmod_ginger_opensearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_opensearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_opensearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/driebit%2Fmod_ginger_opensearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/driebit","download_url":"https://codeload.github.com/driebit/mod_ginger_opensearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104527,"owners_count":20561380,"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":[],"created_at":"2025-01-28T19:18:59.323Z","updated_at":"2025-03-23T13:16:17.746Z","avatar_url":"https://github.com/driebit.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"mod_ginger_opensearch\n=====================\n\nA Zotonic module for searching [OpenSearch](http://www.opensearch.org/Specifications/OpenSearch) \nAPIs. \n\nInstallation\n------------\n\nThis module depends on [mod_ginger_xml](https://github.com/driebit/mod_ginger_xml),\nso make sure to install that, too.\n\nUsage\n-----\n\n```erlang\n{Result, Items} = opensearch:search(\n    \"http://example.com/OpenSearch\", % API URL\n    \"this AND that\"                  % search terms\n).\n```\n\n`Result` will contain the OpenSearch results metadata; `Items` a list of items.\nYou can parse those items with `xmerl`:\n\n```erlang\nlists:map(\n    fun(Item) -\u003e\n        Title = ginger_xml:get_value(\"//title\", Item)\n        %% Go and do cool stuff with the data!\n    end,\n    Items\n).\n```\n\nTo specify the count, index and page parameters:\n\n```erlang\n{Result, Items} = opensearch:search(\n    \"http://example.com/OpenSearch\",\n    \"this AND that\",\n    100,            % count\n    10,             % start index\n    2               % start page   \n).\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_ginger_opensearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdriebit%2Fmod_ginger_opensearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdriebit%2Fmod_ginger_opensearch/lists"}