Guest User

discURL.py simple python script

a guest
Jan 20th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. __author__="bi0os.blogspot.com"
  4. __date__ ="$Jan 20, 2013 5:12:10 PM$"
  5. __version__="0.1"
  6.  
  7. import sys
  8.  
  9. """
  10. This little script born because I was get in trouble to see the real url from the filmeja.com.
  11.  
  12. He give me the url in a reverse mode. Eg: ?url=azxj06z3/ot.lu//:ptth filmeja badBoy!
  13.  
  14. But with this in python trick, We see the real url and we obtain the movie we want ;)
  15.  
  16. Bye!
  17.  
  18. [::-1] -> http://goo.gl/GfDqB
  19.  
  20. """
  21.  
  22. try:
  23.     url = sys.argv[1]
  24.    
  25.     def parse(url):
  26.         lclean = url.replace('?url=', '')
  27.         lclean = lclean[::-1]
  28.         print "The real url is: ",lclean
  29.  
  30.     parse(url)
  31.  
  32. except IndexError:
  33.     print"Usage: ", sys.argv[0], "'url to discover'\n"
Advertisement
Add Comment
Please, Sign In to add comment