You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res = requests.get("http://automatetheboringstuff.com/files/rj.txt")
res.raise_for_status() # it will return nothing if there the location is correct
file = open("c:\\Users\\User\\Desktop\\PROGRAMS\\python\\Pycharm Project Files\\text files\\request.txt", "wb") # we should write in the form of binary data