Skip to content

s6s8/RandomCodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

RandomCodes

Python

Read Online File

#! /usr/bin/env python

try:
    # For Python 3.0 and later
    from urllib.request import urlopen
except ImportError:
    # Fall back to Python 2's urllib2
    from urllib2 import urlopen

# opens url, reads, decodes and then prints.
html = urlopen("http://www.google.com/") # .read().decode('utf-8')
# html = html.read().decode('utf-8')
print(html.read())

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors