Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #-*- coding: utf-8 -*-
- from urllib2 import *
- import os
- site = raw_input("Indiquer le site exemple --> http://www.google.fr/ : ")
- lm = urlopen(site)
- contenu_site = lm.read()
- f = open('source.html', 'w+')
- f.write(contenu_site)
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment