{"action":"closed","issue":{"url":"https://api.github.com/repos/fent/feedme.js/issues/7","repository_url":"https://api.github.com/repos/fent/feedme.js","labels_url":"https://api.github.com/repos/fent/feedme.js/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/fent/feedme.js/issues/7/comments","events_url":"https://api.github.com/repos/fent/feedme.js/issues/7/events","html_url":"https://github.com/fent/feedme.js/issues/7","id":142675209,"number":7,"title":"[doc] end of parsing event + remote url","user":{"login":"kachkaev","id":608862,"avatar_url":"https://avatars.githubusercontent.com/u/608862?v=3","gravatar_id":"","url":"https://api.github.com/users/kachkaev","html_url":"https://github.com/kachkaev","followers_url":"https://api.github.com/users/kachkaev/followers","following_url":"https://api.github.com/users/kachkaev/following{/other_user}","gists_url":"https://api.github.com/users/kachkaev/gists{/gist_id}","starred_url":"https://api.github.com/users/kachkaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kachkaev/subscriptions","organizations_url":"https://api.github.com/users/kachkaev/orgs","repos_url":"https://api.github.com/users/kachkaev/repos","events_url":"https://api.github.com/users/kachkaev/events{/privacy}","received_events_url":"https://api.github.com/users/kachkaev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-22T14:54:02Z","updated_at":"2016-03-26T23:56:23Z","closed_at":"2016-03-26T23:56:23Z","body":"I've tried to use the library for fetching a remote url, but failed setting up the stream correctly. An example with such a case might be useful for future users. Here is one the things I tried:\r\n\r\n```js\r\nimport FeedMe from 'feedme';\r\nimport request from 'request';\r\n\r\nconst extractedData = [];\r\nconst feedUrl = 'http://example.com/feed.rss';\r\nconst feedParser = new FeedMe(true);\r\n\r\nfeedParser.on('item', (feedItem) => {\r\n   // push a new object to extractedData\r\n    console.log('item');\r\n});\r\nfeedParser.on('end', () => {\r\n    // save extractedData\r\n    console.log('end');\r\n});\r\n\r\nrequest(feedUrl).pipe(feedParser);\r\n```\r\n\r\nFor some reason, the output is always the following:\r\n```\r\nend\r\nitem\r\nitem\r\n...\r\n```\r\n\r\nCould you please provide the right way of fetching the feed remotely? I imagine this case is used more often than the one with a local ```fs```."}}