I hereby claim:
- I am djrhails on github.
- I am djrhails (https://keybase.io/djrhails) on keybase.
- I have a public key ASAJbd2jC5tzJJ9FcUE35pKbhQasTNUOoI86blNudMoIBgo
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
from dataclasses import dataclass | |
from io import StringIO | |
from pathlib import Path | |
from rich.console import Console | |
from rich.panel import Panel | |
from rich.table import Table | |
from typing import Optional | |
import contextlib |
import sys | |
import openai | |
import subprocess | |
# Replace YOUR_API_KEY with your actual OpenAI API key | |
openai.api_key = "YOUR_API_KEY" | |
def get_page_contents(url): | |
try: | |
result = subprocess.run(["lynx", "-dump", url], capture_output=True, check=True) |
I hereby claim:
To claim this, I am signing this object: