Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- """ Your mission should you choose to accept it:... use urllib() module to
- grab instances of a user specified charactar string from read() url target.
- write() those characters or files to a local summary data file. Storing the
- Extracted data for later use and processing. ;-) DataMining """
- import sys
- import os
- import re
- import urllib
- def urldog():
- uf = urllib.urlopen('http://google.com')
- print uf.read()
- uf.close()
- # set up main
- def main():
- urldog()
- #call main
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment