import try catch

This commit is contained in:
quarz12 2022-01-26 10:41:42 +01:00
parent 326d6e7b9d
commit 477b202c38

View File

@ -2,7 +2,10 @@ import concurrent.futures
import requests import requests
from bs4 import BeautifulSoup as BS # requirement from bs4 import BeautifulSoup as BS # requirement
import lxml #requirement for better speed import lxml #requirement for better speed
import cchardet #optional for better speed try:
import cchardet #optional for better speed
except ImportError:
pass
from cps.services.Metadata import Metadata from cps.services.Metadata import Metadata
#from time import time #from time import time
from operator import itemgetter from operator import itemgetter