-
-
Save fedarko/4fc177cff9084b9e325dcbe954547edc to your computer and use it in GitHub Desktop.
# your link goes here | |
link = "https://github.com/knightlab-analyses/qurro-mackerel-analysis/blob/master/AnalysisOutput/qurro-plot.qzv" | |
# note: this will break if a repo/organization or subfolder is named "blob" -- would be ideal to use a fancy regex | |
# to be more precise here | |
print(link.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/")) | |
# example output link: | |
# https://raw.githubusercontent.com/knightlab-analyses/qurro-mackerel-analysis/master/AnalysisOutput/qurro-plot.qzv |
تحديث جديد``
حمله الان
تحديثتحديث
your link goes here
link = "https://github.com/Lastuu1234/dahoodlockraw"
note: this will break if a repo/organization or subfolder is named "blob" -- would be ideal to use a fancy regex
to be more precise here
print(link.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/"))
example output link:
https://raw.githubusercontent.com/knightlab-analyses/qurro-mackerel-analysis/master/AnalysisOutput/qurro-plot.qzv
this is working...just erase the blob which is on the link that we get from repo and cut the word blob from the link then our link is ready to view our page at website
Doesn't work for file urls in private repos. Those require a token. If someone knows how to generate the token, please share.
how to use
anyone know how it would look like with this one?
https://github.com/DjN3lson/cryptoo/blob/main/CodeCoinLogo.png
Doesn't work for file urls in private repos. Those require a token. If someone knows how to generate the token, please share.
You need to generate your personal access token and send that in the header with Name: Authorization
and Value: Token <personal_access_token>
Kjddk
https://github.com/knightlab-analyses/qurro-mackerel-analysis/blob/master/AnalysisOutput/qurro-plot.qz