Old 08-19-2018, 10:12 AM   #1
Breeder
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,817
Default SoundCloud API and REAPER?

Hi, long time no see

So, it seems REAPER is back on the menu cause it's the best tool for the job!

The job? I want to talk to SoundCloud via its API. I see it supports Python. I'm mainly interested in importing songs and other data such as title, artist, links etc...

If anyone has some code snippets, insights etc...I would be grateful if you could share your experience.

Thanks
Breeder is offline   Reply With Quote
Old 08-19-2018, 10:29 AM   #2
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,379
Default

Welcome back!

I imagine you'll need this, for starters: https://forum.cockos.com/showthread.php?t=129696
__________________
Currently working away from home; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack
Lokasenna is offline   Reply With Quote
Old 08-19-2018, 12:03 PM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,003
Default

Oh, glad to see you here again !



Soundcloud HTTP API can support any language, as long as akes HTTP request and Json for parsing the results. You will need a user ID and a key for having access to the API.



From Lua with REAPER you can use cURL CLI to make the HTTP request. If you want to use Python, maybe cURL isn't necessary.
X-Raym is offline   Reply With Quote
Old 08-19-2018, 12:25 PM   #4
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: The vast, frozen wasteland of western Canadia.
Posts: 5,379
Default

Quote:
Originally Posted by X-Raym View Post
From Lua with REAPER you can use cURL CLI to make the HTTP request. If you want to use Python, maybe cURL isn't necessary.
How can you use cURL from Reaper? Are you just having the script execute an external script and watch a text file for the output?
__________________
Currently working away from home; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack
Lokasenna is offline   Reply With Quote
Old 08-19-2018, 12:37 PM   #5
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 4,560
Default

Breeder, it's so great to see ya back again here !
What a coincidence: a few hours back i posted a question about your great "glue items separate" Scripts on Reaper Stash.

(Sorry to be offtopic here).
vanhaze is online now   Reply With Quote
Old 08-19-2018, 02:22 PM   #6
amagalma
Human being with feelings
 
Join Date: Apr 2011
Posts: 1,196
Default

Breeder is back! Breeder is back!!!
amagalma is offline   Reply With Quote
Old 08-19-2018, 04:04 PM   #7
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 1,728
Default

Quote:
Originally Posted by Breeder View Post
Hi, long time no see
<3 <3 <3
__________________
Dax Liniere
London's newest premium studio complex! (Facebook)
[i7-4790K, 12Gb RAM, Win8.1x64, NVidia 9600, UAD2-OCTO, FireFaceUFX, REAPER x64]
daxliniere is offline   Reply With Quote
Old 08-19-2018, 05:33 PM   #8
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,003
Default

Quote:
Originally Posted by Lokasenna
How can you use cURL from Reaper? Are you just having the script execute an external script and watch a text file for the output?
Exactly !


This is how Heda's manager internally works.
X-Raym is offline   Reply With Quote
Old 08-19-2018, 06:12 PM   #9
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 7,976
Default

https://forum.cockos.com/showthread.php?t=82199
(Source also still available on the stash)

And nice to see you back.
nofish is offline   Reply With Quote
Old 08-19-2018, 06:56 PM   #10
Breeder
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,817
Default

Quote:
Originally Posted by Lokasenna View Post
Welcome back!

I imagine you'll need this, for starters: https://forum.cockos.com/showthread.php?t=129696

Quote:
Originally Posted by X-Raym View Post
Oh, glad to see you here again !



Soundcloud HTTP API can support any language, as long as akes HTTP request and Json for parsing the results. You will need a user ID and a key for having access to the API.



From Lua with REAPER you can use cURL CLI to make the HTTP request. If you want to use Python, maybe cURL isn't necessary.
So it's doable in theory, awesome!


Quote:
Originally Posted by vanhaze View Post
Breeder, it's so great to see ya back again here !
What a coincidence: a few hours back i posted a question about your great "glue items separate" Scripts on Reaper Stash.

(Sorry to be offtopic here).
Yes, I noticed it too and was WTF too - synchronicity is a beautiful thing, isn't it?

Quote:
Originally Posted by amagalma View Post
Breeder is back! Breeder is back!!!
Haha, this time hopefully doing more music and less coding As usual, I'll make sure to share anything useful I create

Quote:
Originally Posted by X-Raym View Post
Exactly !


This is how Heda's manager internally works.
Quote:
Originally Posted by nofish View Post
https://forum.cockos.com/showthread.php?t=82199
(Source also still available on the stash)

And nice to see you back.
And this is it! Thanks guys - I'm so happy this is doable as it will probably allow for many hours saved. I too am happy to be using REAPER again - we didn't click properly for music creation so I'm glad new goals in life have brought me back to it. Thanks for all the kind words, I didn't expect that

Last edited by Breeder; 08-19-2018 at 07:03 PM.
Breeder is offline   Reply With Quote
Old 08-20-2018, 01:42 PM   #11
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,032
Default

Wohoooo, welcome back Breeder, we never talked before, but I saw so many great things you did for the Reaper community. Glad you are back!
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 08-20-2018, 04:27 PM   #12
Breeder
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,817
Default

Quote:
Originally Posted by _Stevie_ View Post
Wohoooo, welcome back Breeder, we never talked before, but I saw so many great things you did for the Reaper community. Glad you are back!
Yes, I too amaze myself how I found the time to do all of it. Using contextual toolbars right now and I had to read the manual I wrote

But most things still seem to work - I had always hoped Cockos would give out API for contextual stuff so SWS developers wouldn't go through same torture I went by guessing resizing formulas with print-screening stuff to count pixels in photoshop and mouse set to speed 1 out of 100
Breeder is offline   Reply With Quote
Old 08-20-2018, 04:42 PM   #13
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,032
Default

Quote:
Originally Posted by Breeder View Post
But most things still seem to work - I had always hoped Cockos would give out API for contextual stuff so SWS developers wouldn't go through same torture I went by guessing resizing formulas with print-screening stuff to count pixels in photoshop and mouse set to speed 1 out of 100
Haha, welcome in my world. When having coded something and returning after a while, I'm completely clueless...

Dude, I love your contextual toolbars! Best thing since sliced bread.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 08-20-2018, 05:33 PM   #14
Breeder
Human being with feelings
 
Join Date: Nov 2010
Posts: 1,817
Default

Quote:
Originally Posted by _Stevie_ View Post
Haha, welcome in my world. When having coded something and returning after a while, I'm completely clueless...
I think that's normal Like we all get possessed by some coding genie and once the fun is over you're like "wtf is this shit"
Breeder is offline   Reply With Quote
Old 08-20-2018, 05:42 PM   #15
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 1,032
Default

Quote:
Originally Posted by Breeder View Post
I think that's normal Like we all get possessed by some coding genie and once the fun is over you're like "wtf is this shit"
Totally!!! Haha, glad I'm not alone That genie is just around here, again...
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan R÷mer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.