Added redirect

This commit is contained in:
Casey 2024-04-24 21:50:57 +03:00
parent 1569390754
commit 036cd188da
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ async def verify_link(url: str) -> float:
for match in regex.finditer(url):
total_score += score
async with AsyncClient(
headers={"User-Agent": get_random_useragent()}
headers={"User-Agent": get_random_useragent()},
follow_redirects=True,
max_redirects=32
) as client:
data = await client.get(url)
for score, explanation, match in explain_verification(data.text):