From a7534d6e6f2afa95be2c563f53bdbe19f28bca0c Mon Sep 17 00:00:00 2001 From: Tegan Snyder Date: Thu, 31 Dec 2015 11:24:30 -0600 Subject: [PATCH] Explicitly specify a parser Prevents a user warning when no parser is explicitly specified. This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. --- python/crawl_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/crawl_executor.py b/python/crawl_executor.py index 8afa4e1..a7f257c 100644 --- a/python/crawl_executor.py +++ b/python/crawl_executor.py @@ -69,7 +69,7 @@ def run_task(): print error_msg return - soup = BeautifulSoup(source) + soup = BeautifulSoup(source, "lxml") links = [] try: