#ayuda fediverso #youtube #potoken
#ayudaTec
alguien tiene experiencia con https://github.com/YunzheZJU/youtube-po-token-generator ?
me estoy intentando bajar videos de youtube con #pytube y me detecta como bot

segun esta documentacion, necesito usar potoken
https://github.com/JuanBindez/pytubefix/pull/209

pero no me devuelve nada despues de lanzarlo. salvo eventualmente, despues de 5 minutacos o algo, que ha crasheado node

si lo intento hacer manualmente (la guia dice especificamente que lo haga SIN cuenta), me pide que me conecte

GitHub - YunzheZJU/youtube-po-token-generator: It generates a valid poToken with visitorData fetched from YouTube.

It generates a valid poToken with visitorData fetched from YouTube. - YunzheZJU/youtube-po-token-generator

GitHub

#ayuda fediverso #python #pytube
la libreria pytube (https://pytube.io/en/latest/user/cli.html) esta rota?
hasta la operacion mas estandar (sin ningun argumento) me devuelve e400 bad request
@sancas @ximo

se agradece #boost

Command-line interface (CLI) — pytube 15.0.0 documentation

22 days in and #Youtube successfull broke #massdownload

Dear year 2025: I don't like you already

---

#pytube now neeeds to have T0Kens ??!

The proof of origin (PO) token is a parameter that YouTube requires to be sent with video playback requests from some clients. Without it, format URL requests from affected customers may return HTTP error 403, error with bot detection, or result in your account or IP address being blocked.
https://github.com/JuanBindez/pytubefix/pull/209

#Youtube WAT ?
I'm doing that now. I got to about 20 songs manually creating symlinks before I decided to make a script using pytube to do this.
That's what im doing now but turning out that installing pip and pytube is more complicated then it should be. I'm gonna try just getting pytube through packman.

#pytube #tech #music

Ne téléchargez plus des #vidéos #YouTube avec des applications pouvant contenir des #virus . Faites-le avec les modules #Python : #pytube et #moviepy , au format MP4

https://x.com/ivancastl/status/1811123747052736818?t=trTUQ9rVbMgoeV_J9r4dEg&s=09

Ivan Castañeda (@ivancastl) on X

Ya no descargues vídeos de YouTube con aplicaciones que pueden contener virus. Hazlo usando Python con los módulos pytube y moviepy. Con este script puedes descargar el vídeo en formato MP4 y luego separarlo en MP3 de manera más rápida y segura, sin riesgo de virus.

X (formerly Twitter)

pytube is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos.

How to download Youtube videos using Python!!!!

#python3 #pytube #YouTube #programming

Python Web Proxy Convinces Sonos to Stream YouTube

[Maurice-Michel Didelot] owns a Sonos smart speaker, and was lamenting the devices inability (or plain unwillingness) to stream music from online sources without using a subscription service. YouTube Music will work, but being a subscription product there is a monthly fee, which sucks since you can listen to plenty of content on YouTube for free. [Maurice] decided that the way forward was to dig into how the Sonos firmware accesses 'web radio' sources, and see if that could be leveraged to stream audio from YouTube via some kind of on-the-fly stream conversion process.

What? No MP4 support for web radio? Curses!

So let's dig in to how [Maurice] chose to approach this. The smart speaker can be configured to add various streaming audio sources, and allows you add custom sources for those. The Sonos firmware supports a variety of audio codecs, besides MP3, but YouTube uses the MP4 format. Sonos won't handle that from a web radio source, so what was there to do, but make a custom converter?

After a little digging, it was determined that Sonos supports AAC encoding (which is how MP4 encodes audio) but needs it wrapped in an ADTS (Audio Data Transport Stream ) container. By building a reverse web-proxy application, in python using Flask, it was straightforward enough to grab the YouTube video ID from the web radio request, forward a request to YouTube using a modified version of pytube tweaked to not download the video, but stream it. Pytube enabled [Maurice] to extract the AAC audio 'atoms' from the MP4 container, and then wrap them up with ADTS and forward them onto the Sonos device, which happily thinks it's just a plain old MP3 radio stream, even if it isn't.

Sonos doesn't have the best reputation, let's say, but you can't deny that there's some pretty slick tech going on inside. Here's a neat hack we covered last year, adding Sonos support to an old school speaker, and a nice teardown of a IKEA Sonos-compatible unit, which uses some neat design hacks.

Thanks [mip] for the tip!

Featured image by Charles Deluvio on Unsplash.

#softwarehacks #audio #flask #mp4 #python #pytube #sonos #streaming #webradioplayer #youtube

Python Web Proxy Convinces Sonos To Stream YouTube

[Maurice-Michel Didelot] owns a Sonos smart speaker, and was lamenting the devices inability (or plain unwillingness) to stream music from online sources without using a subscription service. YouTu…

Hackaday