Advertisement
Guest User

Untitled

a guest
Aug 27th, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import urllib
  2. import re
  3.  
  4. html = urllib.urlopen("http://jshawl.com/python-playground/").read()
  5.  
  6. lines = [html]
  7. for line in lines:
  8. if re.findall("jesseshawl", line):
  9. print line
  10.  
  11. jesseshawl@gmail.com
  12.  
  13. <html>
  14. <head></head>
  15. <body>
  16. <h1>Some images to download:</h1>
  17. <img src='python.gif'/><br />
  18. <img src='terminal.png' />
  19. <hr />
  20.  
  21. <h1>Email addresses to extract:</h1>
  22. jesseshawl@gmail.com<br />
  23. sudojesse@gmail.com<br />
  24.  
  25. <hr />
  26.  
  27. <h1>Login Form:</h1>
  28. Login here:<br />
  29. User: user<br />
  30. Pass: pass
  31. <form method="POST" action="login.php">
  32. User: <input type="text" name="username" /><br />
  33. Pass: <input type="password" name="password" /><br />
  34. <input type="submit" />
  35. </form>
  36.  
  37. <h1>Memorable Quotes</h1>
  38. <ul>
  39. <li></li>
  40. </ul>
  41.  
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement