Advertisement
aDnCollin

Pastebin Refresh Bot

Nov 1st, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. #!/usr/bin/python
  2. # Refresh Bot
  3. # Haunui Collin "aDn"
  4.  
  5.  
  6. title = '----------------------------------------'
  7.  
  8. print title
  9. print 'Python Refresh Bot'
  10. print title
  11.  
  12. print 'How many refresh ? : '
  13. r = input()
  14. r = int(r)
  15.  
  16. myurl=raw_input("Enter URL: ")#target url
  17.  
  18. while r > 1:
  19.     r = r - 1
  20.     print r
  21.     import urllib
  22.     maPage = urllib.urlopen(myurl)
  23.    
  24.     if r == 1:
  25.         print title
  26.         finish=raw_input("Refresh Bot Finish His Job. Click Enter To Exit")
  27.         exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement