소스 검색

Update links.py

Fixed SSL Error
pull/3365/head
Murtaza rizvi 1 년 전
부모
커밋
3b02394341
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      scripts/validate/links.py

+ 4
- 0
scripts/validate/links.py 파일 보기

@@ -3,11 +3,15 @@
import re
import sys
import random
import ssl
from typing import List, Tuple

import requests
from requests.models import Response

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

def find_links_in_text(text: str) -> List[str]:
"""Find links in a text and return a list of URLs."""


불러오는 중...
취소
저장