Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

Load remote markdown file from python

$
0
0

I need to read an .md file with python and store the content somewhere else.When I use this code, I get HTML, but I only need the markdown code.

doc_url = 'https://gitlab.com/quanzhang/cloud-deploy-component-prod/-/blob/main/README.md'with urllib.request.urlopen(doc_url) as url:  text = url.read()

Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>