Is there any chance to load youtube/twitch comments live in pure data via API or something?
I want to try making something like this:
but control midi
Thank you!
Load youtube/twitch comments live in puredata and control midi output?
Is there any chance to load youtube/twitch comments live in pure data via API or something?
I want to try making something like this:
Thank you!
@lomz obviously possible, but idk how, don't use mac or windows though.
What I find for now:
connection with WebSocket:
https://github.com/chr15m/pd-ws
youtube live comments API tutorial:
@lomz https://github.com/residuum/PuRestJson/wiki/Using-Pd-as-Twitter-Client is interesting...... but.......
If you can run Pd extended, or can run a 32-bit version of Vanilla (0.48 and earlier I think) the MrPeach library has an object [tcpclient] There are other 32-bit libraries that have clients as well but as far as I know no 64-bit versions.
There is a wrapper [httpget] here...... https://puredata.info/docs/tutorials/SimplePdExtendedWebclient but the help file has gone awol. Fortunately there is a screenshot on that page.
If you can get to your comments the rest will be child's play.
For windows there is a portable version of extended which will not interfere with your installed version....... http://puredata.info/downloads/pd-extended and contains the necessary objects for [httpget]...
PS..... for 64-bit check out the iemnet library. A tcpclient might be in there and be usable.....?
David.
@whale-av in deken is a 64-bit version of the mrpeach library.
@whale-av thank you so much! I will research and if I make something I will post here!
working link for [httpget] : https://github.com/danomatika/rc-patches/tree/master/extra
tested in pd-extended and works
@lomz You could also use the [shell] object from Ggee? and something like youtube-comment-scraper to get the comments. This would also have the advantage of being able to parse the data from a shell script, which is likely considerably easier than doing it in pd, or youtube-comment-scraper may be able to just format it how you want it in the first place, never used it. I think youtube-dl may also be able to retrieve comments?
Oops! Looks like something went wrong!