X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fba%2Fnetwork.py;h=df883c9e5756068554c48782ee93266a59189c45;hb=88c30cbcf5f275c39bee5426443dd5b30c51281a;hp=d9322219a717e2a7dc4ba346180727b84b2fb543;hpb=413f462f772e139020981ca020924be4682e86a0;p=fba.git diff --git a/fba/network.py b/fba/network.py index d932221..df883c9 100644 --- a/fba/network.py +++ b/fba/network.py @@ -23,7 +23,7 @@ from fba import fba from fba import instances # HTTP headers for non-API requests -headers = { +web_headers = { "User-Agent": config.get("useragent"), } @@ -125,7 +125,7 @@ def fetch_friendica_blocks(domain: str) -> dict: try: doc = bs4.BeautifulSoup( - fetch_response(domain, "/friendica", headers, (config.get("connection_timeout"), config.get("read_timeout"))).text, + fetch_response(domain, "/friendica", web_headers, (config.get("connection_timeout"), config.get("read_timeout"))).text, "html.parser", ) except BaseException as exception: