{"id":22139734,"url":"https://github.com/nerdbeere/open-paf-data","last_synced_at":"2025-03-24T10:43:06.957Z","repository":{"id":30222446,"uuid":"33773510","full_name":"nerdbeere/open-paf-data","owner":"nerdbeere","description":"An approach to gather and analyze data (news, search results, social behavior) about Pfaffenhofen a. d. Ilm.","archived":false,"fork":false,"pushed_at":"2015-06-07T12:56:05.000Z","size":248,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T16:11:26.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/nerdbeere.png","metadata":{"files":{"readme":"README.md","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":"2015-04-11T11:33:55.000Z","updated_at":"2015-04-19T09:50:42.000Z","dependencies_parsed_at":"2022-08-30T03:20:39.390Z","dependency_job_id":null,"html_url":"https://github.com/nerdbeere/open-paf-data","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/nerdbeere%2Fopen-paf-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdbeere%2Fopen-paf-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdbeere%2Fopen-paf-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdbeere%2Fopen-paf-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdbeere","download_url":"https://codeload.github.com/nerdbeere/open-paf-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245257204,"owners_count":20585971,"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":"2024-12-01T20:17:53.169Z","updated_at":"2025-03-24T10:43:06.927Z","avatar_url":"https://github.com/nerdbeere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Paf Data\n\n![Logo Pfaffenhofen](http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Wappen_Landkreis_Pfaffenhofen_an_der_Ilm.svg/140px-Wappen_Landkreis_Pfaffenhofen_an_der_Ilm.svg.png)\n\nAn approach to gather and analyze data (news, search results, social behavior) about Pfaffenhofen a. d. Ilm.\nThe data should then be accessible via a generic JSON API.\n\n## Why?\n\n\u003e If the mountain won't come to Muhammad, Muhammad must go to the mountain.\n\nThere is a lot of data out there regarding the county *Pfaffenhofen a. d. Ilm* but it's scattered and most of the data is not available in a machine-readable and/or generic format.\n\n## Implemented Features\n\n* Gather and generalize data from different sources\n* Automatically gathers information in predefined intervals\n* Persist data to `rethinkdb`\n* Simple JSON API (with caching)\n* Simple react-based frontend for displaying news\n\n## Planned Features\n* More sophisticated API\n* Text Comparison for news (partly implemented)\n* Trending topics\n* Frontend (partly implemented)\n\n## Implemented Adapters\n\n### RSS\n* Landkreis Pfaffenhofen (landkreis-pfaffenhofen.de)\n* Paf und du (pafunddu.de)\n* Pfaffenhofener Kurier Lokalnachrichten\n\n### Search Engines\n* google (with searchterm `pfaffenhofen ilm`)\n\n### Social\n* twitter (with searchterm `pfaffenhofen`)\n\n### Sport\n* Aktuelle GCR Abschlagszeiten\n\n## Planned Adapters\n* Weather data\n* Events\n* Business hours for Shops, restaurants, authorities\n* Cinema data\n\n## Installation\n\n**Warning**: rethinkdb \u003e= 2.0.0 is required!\n\n* Install `nodejs` and `rethinkdb` on your machine.\n* Create database `pafdata` with tables `news`, `search`, `social`, `pccaddie`\n* Clone the repository\n* Create config files by copying the example config files\n* `npm install`\n\n## Run the application\n\nUse `npm start` to both start the crawler and the API. You can also start both processes independently.\n\n### Crawler\nThe crawler is a process that perdiocally crawls different sources and saves new data to the database. Use `npm run start-crawler` to start the crawler.\n\n### API\nThe API is a process that supplies JSON formatted data via http. Use `npm run start-api` to start the API Process.\n\n## API\nThe API will be accessible via HTTP on `http://\u003cHOSTNAME\u003e:\u003cPORT\u003e`.\nThere are currently three endpoints available:\n\n* **search_results**: `http://\u003cHOSTNAME\u003e:\u003cPORT\u003e/search_results`\n* **social**: `http://\u003cHOSTNAME\u003e:\u003cPORT\u003e/social`\n* **news**: `http://\u003cHOSTNAME\u003e:\u003cPORT\u003e/news`\n* **gcr_teetime**: `http://\u003cHOSTNAME\u003e:\u003cPORT\u003e/gcr_teetime`\n\n### Example response\n\n```json:\n[\n  {\n    \"adapter\": \"google\",\n    \"created\": 1428832121505,\n    \"id\": \"2f0e16a4-8570-4df6-ac3e-0d77b6aa1c9c\",\n    \"identifier\": \"a080713d2c13a4e2b1435230666e7be83f6e7c7d\",\n    \"link\": \"http://gvents.de/pfaffenhofen-an-der-ilm-onstage-im-frontstage-live/259039\",\n    \"tags\": [\n      \"google\"\n    ],\n    \"text\": \"vor 1 Tag ... April 25, 2015 @ JUZ Frontstage Pfaffenhofen a. d. Ilm in Pfaffenhofen an der Ilm. \\nReggae! Einlass ab 19:30 Uhr – Konzertbeginn 20:30 Uhr.\",\n    \"title\": \"Pfaffenhofen an der Ilm: ONSTAGE im Frontstage Live ...\",\n    \"type\": \"search\"\n  }\n]\n```\n\n## Contribution\nPull requests and ideas welcome\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2015 Julian Hollmann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdbeere%2Fopen-paf-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdbeere%2Fopen-paf-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdbeere%2Fopen-paf-data/lists"}