Horje
write page source to text file python Code Example
write page source to text file python
import requests

url = "https://stackoverflow.com/questions/24297257/save-html-of-some-website-in-a-txt-file-with-python"

r = requests.get(url)
with open('file.txt', 'w') as file:
    file.write(r.text)




Python

Related
how to split image dataset into training and test set keras Code Example how to split image dataset into training and test set keras Code Example
terminal from python Code Example terminal from python Code Example
compress tarfile python Code Example compress tarfile python Code Example
python csv to list Code Example python csv to list Code Example
pygame keyboard input Code Example pygame keyboard input Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7