Added redirect
This commit is contained in:
parent
1569390754
commit
036cd188da
|
@ -67,7 +67,9 @@ async def verify_link(url: str) -> float:
|
||||||
for match in regex.finditer(url):
|
for match in regex.finditer(url):
|
||||||
total_score += score
|
total_score += score
|
||||||
async with AsyncClient(
|
async with AsyncClient(
|
||||||
headers={"User-Agent": get_random_useragent()}
|
headers={"User-Agent": get_random_useragent()},
|
||||||
|
follow_redirects=True,
|
||||||
|
max_redirects=32
|
||||||
) as client:
|
) as client:
|
||||||
data = await client.get(url)
|
data = await client.get(url)
|
||||||
for score, explanation, match in explain_verification(data.text):
|
for score, explanation, match in explain_verification(data.text):
|
||||||
|
|
Loading…
Reference in New Issue