community-plugins / streamlink-plugins

The Unlicense
14 stars 2 forks source link

"403 Client Error: Forbidden for url" #5

Closed onedayblack closed 6 months ago

onedayblack commented 1 year ago

Hello, I'm using 5.2.1 version.

C:\Users\username>streamlink -o C:\Users\desktop018\comPluChe\test1.mp4 https://chaturbate.com/**username**/ best
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[warnings][streamlinkdeprecation] `streamlink.plugin.api.validate.text` is deprecated. Use `str` instead.
[cli][info] Found matching plugin chaturbate for URL https://chaturbate.com/**username**/
error: Unable to open URL: https://chaturbate.com/api/chatvideocontext/**username** (403 Client Error: Forbidden for url: https://chaturbate.com/api/chatvideocontext/**username**)

I getting this error. "403 Client Error: Forbidden for URL" - What would be the reason?

odnar-dev commented 1 year ago

I never had this problem, do you get this error for all streamers or only for some? please try to update streamlink to version 5.4.0

onedayblack commented 1 year ago

All publishers get the same error. I tried it on both windows and Debian OS. The result has not changed, also im using v5.4

justcallmejc commented 1 year ago

I am now having the same problem, it's being caused by cloudflare based on what I have researched so far because it's also affecting CTBREC. using a differnt public IP on a totally different computer doesn't resolve the problem. on a computer where streamlink gets a 403, web browser's work fine, but receive a captcha prompt from cloudflare fwiw.

something that might prove very useful for streamlink that is beyond my skillset would be the implementation of cloudscraper or something similar. https://github.com/VeNoMouS/cloudscraper

odnar-dev commented 1 year ago

i was already testing a version that use cloudscraper in this branch try downloading this version and give me a feedback if it work for you https://raw.githubusercontent.com/community-plugins/streamlink-plugins/cloudscraper/plugins/chaturbate.py

justcallmejc commented 1 year ago

i was already testing a version that use cloudscraper in this branch try downloading this version and give me a feedback if it work for you https://raw.githubusercontent.com/community-plugins/streamlink-plugins/cloudscraper/plugins/chaturbate.py

the linked chaturbate.py file works as expected!

odnar-dev commented 7 months ago

i will be closing this for now, if you still having this problem please open a new issue

onedayblack commented 6 months ago

i will be closing this for now, if you still having this problem please open a new issue

Please, Thank you for your help