Guest User

Untitled

a guest
May 9th, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/python
  2. #-*- coding: utf-8 -*-
  3.  
  4. from urllib2 import *
  5. import os
  6.  
  7. site = raw_input("Indiquer le site exemple --> http://www.google.fr/ : ")
  8. lm = urlopen(site)
  9. contenu_site = lm.read()
  10.  
  11. f = open('source.html', 'w+')
  12. f.write(contenu_site)
  13. f.close()
Advertisement
Add Comment
Please, Sign In to add comment