Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib
- import re
- html = urllib.urlopen("http://jshawl.com/python-playground/").read()
- lines = [html]
- for line in lines:
- if re.findall("jesseshawl", line):
- print line
- jesseshawl@gmail.com
- <html>
- <head></head>
- <body>
- <h1>Some images to download:</h1>
- <img src='python.gif'/><br />
- <img src='terminal.png' />
- <hr />
- <h1>Email addresses to extract:</h1>
- jesseshawl@gmail.com<br />
- sudojesse@gmail.com<br />
- <hr />
- <h1>Login Form:</h1>
- Login here:<br />
- User: user<br />
- Pass: pass
- <form method="POST" action="login.php">
- User: <input type="text" name="username" /><br />
- Pass: <input type="password" name="password" /><br />
- <input type="submit" />
- </form>
- <h1>Memorable Quotes</h1>
- <ul>
- <li></li>
- </ul>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement