From 94909099a984f83593c1eb965b4f28a83ae43513 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sat, 15 Mar 2025 00:56:19 +0200 Subject: [PATCH] fix(Parser): Change default text content to empty string instead of None For compatibility with previous fix/commit --- scrapling/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapling/parser.py b/scrapling/parser.py index b83d867..f9e177e 100644 --- a/scrapling/parser.py +++ b/scrapling/parser.py @@ -71,7 +71,7 @@ class Adaptor(SelectorsGeneration): if root is None and not body and text is None: raise ValueError("Adaptor class needs text, body, or root arguments to work") - self.__text = None + self.__text = '' self.__raw_body = '' if root is None: if text is None: