Skip to content

Instantly share code, notes, and snippets.

@goutham2027
Created September 12, 2016 10:13
Show Gist options
  • Save goutham2027/138473dddf9d9cdf34abb03c6e7e4d9f to your computer and use it in GitHub Desktop.
Save goutham2027/138473dddf9d9cdf34abb03c6e7e4d9f to your computer and use it in GitHub Desktop.
def using_context_info(event, context):
info = {
'memory_limit_in_mb': context.memory_limit_in_mb,
'html_length': len(html)
}
return info
def length_of_html(event, context):
response = urllib2.urlopen('http://www.beautifulcode.in')
html = response.read()
response.close()
info = {'html_length': len(html)}
return info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment