Skip to content

Instantly share code, notes, and snippets.

View rtancman's full-sized avatar
🙏
🏊🏽

Raffael Tancman rtancman

🙏
🏊🏽
View GitHub Profile
@rtancman
rtancman / Dockerfile
Last active April 25, 2019 01:22
Python + Lambda - Otimizando o processo com Makefile
FROM amazonlinux
RUN yum update -y
RUN yum groupinstall "Development Tools" -y
RUN yum install -y \
gcc \
bzip2-devel \
libffi \
openssl-devel \
perl-core \
from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
def getDescription(url):
try:
html = urlopen(url)
except HTTPError as e:
return None
try: