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 typing import Optional | |
def scrape_website(url: str) -> Optional[str]: | |
url = f"https://r.jina.ai/{url}" | |
try: | |
response = requests.get(url) | |
if response.status_code == 200: | |
return response.text |
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
@ | |
_ | |
0 | |
00 | |
01 | |
02 | |
03 | |
04 | |
05 | |
06 |