Created
May 11, 2020 02:49
-
-
Save developerfred/27256a8b98d6ee2e861ebd5c92d266fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from urllib.parse import urlparse | |
| def show_url(url): | |
| url_data = urlparse(url) | |
| path = url_data.path | |
| remove_path = ["/channel/"] | |
| for channel in remove_path: | |
| id_channel = path.replace(channel, "") | |
| rss_url = '[RSS](https://www.youtube.com/feeds/videos.xml?channel_id=' + id_channel + ')' | |
| return rss_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment