This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazonlinux | |
RUN yum update -y | |
RUN yum groupinstall "Development Tools" -y | |
RUN yum install -y \ | |
gcc \ | |
bzip2-devel \ | |
libffi \ | |
openssl-devel \ | |
perl-core \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
OlderNewer