How to share YouTube url to my Python kivy app?

298 views Asked by At

I am building an Android App using Python and kivy (kivymd), and I want to let the user share a YouTube link directly from YouTube to my app. So when i click share on YouTube my app appears there, with all the other apps like this: enter image description here

And when the user clicks it, it directs them to the app where the program saves the url into a variable, so that it can do stuff with it. How can I do this?

I found an Answer explaining how to do this:

<activity ...>
 <intent-filter>
  <action android:name="android.intent.action.SEND" />
  <category android:name="android.intent.category.DEFAULT" />              
  <data android:host="www.youtube.com" android:mimeType="text/*" />
 </intent-filter>
</activity>

Would i be able to somehow do this in Python? Im guessing maybe i could use pyjnius, but im not sure how.

1

There are 1 answers

2
Alain OMOND On

https://developers.google.com/youtube/v3

Look at there, everything will be here or close to