I have an open txt file in Github, however, I've tried the whole StackOverflow for answers - and there are nothing that could help:
link to github: https://github.com/netology-code/py-homework-basic-files/blob/master/3.2.http.requests/DE.txt
At the end, I've completed with:
import os.path
cwd=os.getcwd()
import requests
url = 'https://github.com/netology-code/py-homework-basic-files/blob/master/3.2.http.requests/DE.txt'
resp = requests.get(url)
filename='file'
filename = os.path.join(cwd,filename)
But there is no new file in directory of project, as well as I'm recieving a bunch of stuff that I don't need from asking to "resp" file, and I don't even know how to download the text of this file itself. Could somebody help, please?
Yes, I've just saw a link with file, it also could be use and I recieve exatcly what I want and I can use it:
But, the problem of downloading still exists.