Going back to single utils file and using the new types file
This commit is contained in:
@@ -4,9 +4,10 @@ from itertools import chain
|
|||||||
# Using cache on top of a class is brilliant way to achieve Singleton design pattern without much code
|
# Using cache on top of a class is brilliant way to achieve Singleton design pattern without much code
|
||||||
from functools import lru_cache as cache # functools.cache is available on Python 3.9+ only so let's keep lru_cache
|
from functools import lru_cache as cache # functools.cache is available on Python 3.9+ only so let's keep lru_cache
|
||||||
|
|
||||||
from typing import Dict, Iterable, Any
|
from scrapling._types import Dict, Iterable, Any
|
||||||
|
|
||||||
from lxml import html
|
from lxml import html
|
||||||
|
|
||||||
html_forbidden = {html.HtmlComment, }
|
html_forbidden = {html.HtmlComment, }
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.ERROR,
|
level=logging.ERROR,
|
||||||
Reference in New Issue
Block a user