Created
April 2, 2021 10:17
-
-
Save thanakijwanavit/888a51de0e6e68ab349efbc9122f4514 to your computer and use it in GitHub Desktop.
get url from github
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
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "get url from github", | |
"private_outputs": true, | |
"provenance": [], | |
"authorship_tag": "ABX9TyPM4oLNp1afQTJA7/sQ2B6Q", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"language_info": { | |
"name": "python" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/thanakijwanavit/888a51de0e6e68ab349efbc9122f4514/get-url-from-github.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "0nyNLLPSEePj" | |
}, | |
"source": [ | |
"import requests, yaml" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "u5N4Je8ZEgAZ" | |
}, | |
"source": [ | |
"BRANCH = 'master'\n", | |
"url = f'https://raw.githubusercontent.com/thanakijwanavit/villaMasterSchema/master/wallet/endpoints/{BRANCH}.yaml'\n", | |
"r = requests.get(url).text\n", | |
"yaml.load(r)" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "MhSMB5UlEnWs" | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment