streamlink: plugins.bloomberg: Could not find JSON data. Invalid URL or bot protection
Checklist
- This is a plugin issue and not a different kind of issue
- I have read the contribution guidelines
- I have checked the list of open and recently closed plugin issues
- I have checked the commit log of the master branch
Collaboration
Streamlink version
streamlink 6.8.2
Description
This command worked yesterday for Bloomberg, but no longer works:
streamlink https://www.bloomberg.com/live/us best
Terminal:
~ ❯ streamlink https://www.bloomberg.com/live/us best
[cli][info] Found matching plugin bloomberg for URL https://www.bloomberg.com/live/us
[plugins.bloomberg][error] Could not find JSON data. Invalid URL or bot protection...
error: No playable streams found on this URL: https://www.bloomberg.com/live/us
Debug log
[cli][debug] OS: macOS 14.5
[cli][debug] Python: 3.12.4
[cli][debug] OpenSSL: OpenSSL 3.3.1 4 Jun 2024
[cli][debug] Streamlink: 6.8.2
[cli][debug] Dependencies:
[cli][debug] certifi: 2024.7.4
[cli][debug] isodate: 0.6.1
[cli][debug] lxml: 5.2.2
[cli][debug] pycountry: 24.6.1
[cli][debug] pycryptodome: 3.20.0
[cli][debug] PySocks: 1.7.1
[cli][debug] requests: 2.32.3
[cli][debug] trio: 0.25.1
[cli][debug] trio-websocket: 0.11.1
[cli][debug] typing-extensions: 4.12.2
[cli][debug] urllib3: 2.2.2
[cli][debug] websocket-client: 1.8.0
[cli][debug] Arguments:
[cli][debug] url=https://www.bloomberg.com/live/us
[cli][debug] stream=['best']
[cli][debug] --loglevel=debug
[cli][info] Found matching plugin bloomberg for URL https://www.bloomberg.com/live/us
[plugins.bloomberg][error] Could not find JSON data. Invalid URL or bot protection...
error: No playable streams found on this URL: https://www.bloomberg.com/live/us
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 21 (4 by maintainers)
If you do not have a VPN, you can also try your luck with Whonix, a virtual machine operating system that funnels all your internet traffic through the tor network. See https://www.whonix.org/. However, since you would be streaming over the tor network, results may vary.
I actually do not have sound working in Whonix right now. I would need to get around to fixing it. However, I just tried “./streamlink-6.10.0-1-cp312-cp312-manylinux2014_x86_64.AppImage https://www.bloomberg.com/live/asia best --loglevel=debug” inside Whonix, and it is not being blocked by the Bloomberg bot detection system. Meanwhile, if I try to do “streamlink https://www.bloomberg.com/live/asia best” on my own IP address without a VPN or Tor, I get blocked by the bot detection system for some reason.
If you do not know how to use Whonix already, it might not be worth the hassle for you to learn. But it is another option that you can consider.
This feed works great, feel free to update the plugin with the correct link: https://www.bloomberg.com/media-manifest/streams/phoenix-us.m3u8
Where did I get it? I am using page: https://www.bloomberg.com/live/us/btv
Right click on the video player on the page and then click inspect. You’ll probably need to expand out the divs to get to the actually player, but it’s:
main#live-content > div.live > div.live__player > div.live-player > div.live-layer__container > div.video-js > video and the src is the stream URIchaoyic, I would have to look into it a bit more, but here is what I have for you so far.
If you have access to a UK VPN IP address, you can watch bloomberg via pluto on “streamlink https://pluto.tv/uk/live-tv/61559552dd585f0007321eca best” or “streamlink https://pluto.tv/en/live-tv/61559552dd585f0007321eca best”. I do not know if that will give you the European Bloomberg channel or not. You would have to check to see if it shows what you want to see at the right time or if it shows the U.S. version despite it being for the U.K.
If you know Bulgarian, you can access the Bloomberg Bulgarian version from any ip address using “streamlink https://www.bloombergtv.bg/video best”. This is in the Bulgarian language.
If you know Turkish and have a VPN that you can set to Turkey, you can watch the Bloomberg Turkey version at “streamlink bloomberght.com best”. This is in the Turkish language.
You also can bypass the bloomberg bot check by using streamlink to watch the .m3u8 directly. I think that this requires you to go to the website and look up the .m3u8 each day you want to do it, since I assume that it changes over time. So you do have to deal with the website and the bloat/trackers/ads involved with it initially. But you can do it if it is your preference.
You can do this in a chromium-based browser with the developer console, under the network tab. However, I prefer to use UBlock Origin’s logger in Brave browser or a Firefox-based browser like Mullvad Browser, since it is easier for me. It may or may not work in Google Chrome, since Google deprecated Manifest_v2.
Procedure-
Please let me know if any of those things work for you or if you need different instructions. And let me know if you need me to look for another option.
Last I checked, the VPN server that allowed me through for the bloomberg plugin does not let me through anymore.
I recommend using the pluto tv workaround, which is my personal preference anyways.
The Bloomberg plugin appears to be broken again (it worked for me 2 days ago):
Regarding the feedback on #6107 – I will try to look at this next week, hopefully I can find the time to reproduce the testing virtual environment. But if I understand correctly @bastimeyer, you are looking for a log where the fallback mechanism for the plugin is used & working – which it may not do at all atm?
I get this error too, but only if I am using a vpn server that bloomberg apparently does not like. Depending on my ip address, it will either give me the error or allow the program to work. So a workaround is to use a vpn to change your ip address.
Another workaround is to watch bloomberg by using pluto tv. This requires that you are using an ip address for a country that pluto provides bloomberg for.
If you have a united states ip address, I suggest the following command. streamlink https://pluto.tv/en/live-tv/54ff7ba69222cb1c2624c584 best --loglevel=debug --verbose --player-no-close --player=mpv --hls-live-edge=10 --stream-segment-threads=5
If you have a united kingdom ip address, I suggest the following command. streamlink https://pluto.tv/en/live-tv/61559552dd585f0007321eca best --loglevel=debug --verbose --player-no-close --player=mpv --hls-live-edge=10 --stream-segment-threads=5