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

The Initium 端传媒 router fails to fetch full text article behind paywall #13388

Closed
1 task done
mintyfrankie opened this issue Sep 25, 2023 · 12 comments · Fixed by #15797
Closed
1 task done

The Initium 端传媒 router fails to fetch full text article behind paywall #13388

mintyfrankie opened this issue Sep 25, 2023 · 12 comments · Fixed by #15797
Labels
Bug Ping: Pinged Count: 1/1 Route: v2 v2 route related RSS bug Something isn't working

Comments

@mintyfrankie
Copy link
Contributor

Routes

/theinitium/channel/:type?/:language?

Full routes

/theinitium/channel/latest/zh-hans

Related documentation

https://docs.rsshub.app/routes/new-media#duan-chuan-mei-zhuan-ti-lan-mu

What is expected?

With default ENV variable or personal variable like INITIUM_BEARER_TOKEN, the router should be able to fetch full-text article from the source.

What is actually happening?

Some articles failed to be fetched in full-text mode, showing for example :

CleanShot 2023-09-25 at 14 28 18

Deployment information

Self-hosted

Deployment information (for self-hosted)

No response

Additional info

No relative logs found regarding this issue.

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported
@mintyfrankie mintyfrankie added the RSS bug Something isn't working label Sep 25, 2023
@github-actions
Copy link
Contributor

Searching for maintainers:
  • /theinitium/channel/:type?/:language?: @prnake

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。
If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.

@prnake
Copy link
Contributor

prnake commented Sep 25, 2023

Maybe the initium changed some api, I’ll check this later

@mintyfrankie
Copy link
Contributor Author

Thanks! Happy to help if you need some more information to trace down the issue.

@shyrz
Copy link

shyrz commented Oct 21, 2023

The same issue. Please help to check.

@prnake
Copy link
Contributor

prnake commented Oct 22, 2023

I think it's a known issue that The Initium disables access to the full text behind paywall via a fake (or real) search engine bot UA started from August, which means only paid accounts can read the full text. And I tested the full text accessing via configured password or token from a paid account works fine now.

@mintyfrankie
Copy link
Contributor Author

Hi @prnake,

Just want to give a quick update on the issue; withe either INITIUM_BEARER_TOKEN or env variables on login and password it seems to work fine now; however the INITIUM_IAP_RECEIPT doesn't work anymore.

I sniffed the iOS application and found that it uses a standard Authorization header, with its value as token xxxxx rather than Bearer xxxx. Maybe it can be interesting to update the script, as from my testings this authorization method can keep alive much longer than bearer token.

I'd be happy to contribute and raise a PR if you want to, or you can patch a quick fix right away.

@mintyfrankie
Copy link
Contributor Author

Also:

I think it's a known issue that The Initium disables access to the full text behind paywall via a fake (or real) search engine bot UA started from August, which means only paid accounts can read the full text. And I tested the full text accessing via configured password or token from a paid account works fine now.

Perhaps then we don't need to fake a search bot anymore, as it cannot bypass the paywall. Can be interesting to do a cleanup on the script to streamline the logic.

@prnake
Copy link
Contributor

prnake commented Feb 21, 2024

Hi @prnake,

Just want to give a quick update on the issue; withe either INITIUM_BEARER_TOKEN or env variables on login and password it seems to work fine now; however the INITIUM_IAP_RECEIPT doesn't work anymore.

I sniffed the iOS application and found that it uses a standard Authorization header, with its value as token xxxxx rather than Bearer xxxx. Maybe it can be interesting to update the script, as from my testings this authorization method can keep alive much longer than bearer token.

I'd be happy to contribute and raise a PR if you want to, or you can patch a quick fix right away.

It’s great if you would like to PR for the IOS login method. And although the current fake UA is not working, it does not cause side effects, so I think it’s not necessary to replace it.

@lucky13820
Copy link

I'm using my email and password, but it still fails to fetch full text, it shows Response code 401 (UNAUTHORIZED). Any idea why it doesn't work?

@mintyfrankie
Copy link
Contributor Author

@lucky13820 I believe that we still haven't fixed the router on this issue; I'd like to work on this if possible but unfortunately I don't have the subscription anymore.

@lucky13820
Copy link

lucky13820 commented May 27, 2024 via email

@mintyfrankie
Copy link
Contributor Author

I’m happy to share my credentials for you to work on his router. How should I give it to you?  Thanks,Ryan Yao在 2024年5月27日,上午1:40,minty_frankie @.> 写道: @lucky13820 I believe that we still haven't fixed the router on this issue; I'd like to work on this if possible but unfortunately I don't have the subscription anymore. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

That would be great! You can reach me at gentle.flame4249 at fastmail.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Ping: Pinged Count: 1/1 Route: v2 v2 route related RSS bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants