Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request for extended example #3647

Closed
dppdppd opened this issue Dec 30, 2019 · 1 comment
Closed

request for extended example #3647

dppdppd opened this issue Dec 30, 2019 · 1 comment

Comments

@dppdppd
Copy link

dppdppd commented Dec 30, 2019

Would it be possible to extend the provided example

const RSSHub = require('rsshub');

RSSHub.init({
    // config
});

RSSHub.request('/youtube/user/JFlaMusic')
    .then((data) => {
        console.log(data);
    })
    .catch((e) => {
        console.log(e);
    });

to demonstrate how one would wrap the data into a valid feed? I need to manipulate the data before returning it and It's not clear how to do that given the existing documentation.

@DIYgod
Copy link
Owner

DIYgod commented Dec 30, 2019

It's a npm package, you need to handle the data yourself.

As for generating RSS feed, please read the source code.

@DIYgod DIYgod closed this as completed Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants