{"id":18247945,"url":"https://github.com/tichise/tifeedparser","last_synced_at":"2025-04-04T15:31:55.004Z","repository":{"id":54502377,"uuid":"54122014","full_name":"tichise/TIFeedParser","owner":"tichise","description":"RSS Parser written in Swift","archived":false,"fork":false,"pushed_at":"2023-02-01T13:33:51.000Z","size":104,"stargazers_count":18,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-24T08:29:36.710Z","etag":null,"topics":["atom","cocoapods","parse","rss","spm","swift","swiftpackage"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tichise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-17T13:56:23.000Z","updated_at":"2023-01-13T07:16:03.000Z","dependencies_parsed_at":"2023-02-17T06:00:33.625Z","dependency_job_id":null,"html_url":"https://github.com/tichise/TIFeedParser","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FTIFeedParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FTIFeedParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FTIFeedParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tichise%2FTIFeedParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tichise","download_url":"https://codeload.github.com/tichise/TIFeedParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247202935,"owners_count":20900871,"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":["atom","cocoapods","parse","rss","spm","swift","swiftpackage"],"created_at":"2024-11-05T09:34:53.269Z","updated_at":"2025-04-04T15:31:49.988Z","avatar_url":"https://github.com/tichise.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### TIFeedParser ![CocoaPods Version](https://img.shields.io/cocoapods/v/TIFeedParser.svg?style=flat) ![Platform](https://img.shields.io/cocoapods/p/TIFeedParser.svg?style=flat) ![License](https://img.shields.io/cocoapods/l/TIFeedParser.svg?style=flat)\r\n\r\nTIFeedParser is a parser for RSS, built on Alamofire and AEXML.\r\n\r\nTIFeedParser is a very simple RSS parser written in Swift, supporting Atom, RSS1.0 and RSS2.0. You can download it from cocoapods and use [it](http://qiita.com/tichise/items/b9f55ce924159f4ad0cd).\r\n\r\n\r\n#### Examples\r\n\r\n#### RSS1.0, RSS2.0\r\n```\r\n    func loadRSS() {\r\n        \r\n        let feedString:String = \"https://news.google.com/news?hl=us\u0026ned=us\u0026ie=UTF-8\u0026oe=UTF-8\u0026output=rss\"\r\n\r\n        AF.request(.GET, feedUrlString, parameters:nil)\r\n            .response {request, response, xmlData, error  in\r\n                \r\n                if (xmlData == nil) {\r\n                    return\r\n                }\r\n                \r\n                TIFeedParser.parseRSS(xmlData, completionHandler: {(isSuccess, channel, error) -\u003e Void in\r\n                    \r\n                    if (isSuccess) {\r\n                        // self.items = channel.items!\r\n                        // self.tableView.reloadData()\r\n                    } else {\r\n                        if (error != nil) {\r\n                            print(error?.localizedDescription)\r\n                        }\r\n                    }\r\n                })\r\n        }\r\n    }\r\n```\r\n\r\n#### Atom\r\n```\r\n\tfunc loadAtom() {\r\n        \r\n        let feedString:String = \"https://news.google.com/news?ned=us\u0026ie=UTF-8\u0026oe=UTF-8\u0026q=nasa\u0026output=atom\u0026num=3\u0026hl=ja\"\r\n        \r\n        AF.request(.GET, feedUrlString, parameters:nil)\r\n            .response {request, response, xmlData, error  in\r\n                \r\n                if (xmlData == nil) {\r\n                    return\r\n                }\r\n                \r\n                TIFeedParser.parseAtom(xmlData, completionHandler: {(isSuccess, feed, error) -\u003e Void in\r\n                    \r\n                    if (isSuccess) {\r\n                        // self.entries = feed.entries!\r\n                        // self.tableView.reloadData()\r\n                    } else {\r\n                        if (error != nil) {\r\n                            print(error?.localizedDescription)\r\n                        }\r\n                    }\r\n                })\r\n        }\r\n    }\r\n```\r\n\r\n#### Installation (CocoaPods)\r\n`pod TIFeedParser`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichise%2Ftifeedparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftichise%2Ftifeedparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftichise%2Ftifeedparser/lists"}