From 1906c1cd1b78daf0d608ff503413a8e7ad842f79 Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Tue, 21 Apr 2020 02:56:32 +0930 Subject: [PATCH] Use LXML explicitly --- FAAPI.py | 2 +- requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FAAPI.py b/FAAPI.py index 67772bb..dc89792 100644 --- a/FAAPI.py +++ b/FAAPI.py @@ -60,4 +60,4 @@ class FAAPI: if res.status_code >= 400: raise Exception( 'Got status code {} when trying to get URL {}'.format(res.status_code, url)) - return BeautifulSoup(res.content) + return BeautifulSoup(res.content, 'lxml') diff --git a/requirements.txt b/requirements.txt index 7c27742..f9ba7f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ requests~=2.23.0 bs4~=0.0.1 beautifulsoup4~=4.9.0 -selenium~=3.141.0 \ No newline at end of file +selenium~=3.141.0 +lxml~=4.5.0 \ No newline at end of file