Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import urllib
  3. import time
  4.  
  5. print 'Opening connection'
  6. conn = urllib.urlopen('ftp://ftp.slackware.no/slackware/slackware64-current/ChangeLog.txt')
  7.  
  8. #print 'Sleeping 5 seconds'
  9. #time.sleep(5)
  10.  
  11. print 'Reading line'
  12. conn.readline()
  13.  
  14. print 'Closing connection'
  15. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement