This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from bs4 import BeautifulSoup | |
from time import sleep | |
import json | |
from pprint import pprint | |
import re | |
def find_phone_numbers(text: str) -> list[str]: | |
pattern = re.compile(r'\b\d{3}-\d{3}-\d{4}') | |
phone_numbers = re.findall(pattern, text) |