DIYgod / RSSHub

🧡 Everything is RSSible
https://docs.rsshub.app
MIT License
30.8k stars 6.88k forks source link

RSS support for Quora #2057

Open Ynjxsjmh opened 5 years ago

Ynjxsjmh commented 5 years ago

Website URL

https://www.quora.com/

What content should be included?

RSS support for

Additional description

LakeishaKowalczyk commented 4 years ago

+1

naveenmalla2018 commented 4 years ago

+1 Please add the support

Ynjxsjmh commented 4 years ago

I tried to implement that weeks ago, but unfortunately I don't know why I couldn't access quora and code below throws the error read ECONNRESET: target website might be blocking our access, you can host your own RSSHub instance for a better usability. while python code can.

module.exports = async (ctx) => {
    const id = ctx.params.id;

    const response = await got({
        method: 'get',
        url: `https://www.quora.com/profile/${id}`,
        headers: {
            ...utils.header,
            Referer: `https://www.quora.com/profile/${id}`,
        },
    });

    const data = response.data;
}
NeverBehave commented 3 years ago

https://github.com/DIYgod/RSSHub/issues/6642

NeverBehave commented 3 years ago

I tried to implement that weeks ago, but unfortunately I don't know why I couldn't access quora and code below throws the error read ECONNRESET: target website might be blocking our access, you can host your own RSSHub instance for a better usability. while python code can.

module.exports = async (ctx) => {
    const id = ctx.params.id;

    const response = await got({
        method: 'get',
        url: `https://www.quora.com/profile/${id}`,
        headers: {
            ...utils.header,
            Referer: `https://www.quora.com/profile/${id}`,
        },
    });

    const data = response.data;
}

https://github.com/DIYgod/RSSHub/blob/fa81ed9f0f0a6ffbacc49cccef42e07258d98250/test/middleware/onerror.js

That basically means an 404 error occur.