refac all urls into urls.py

This commit is contained in:
Paul Gauthier 2024-06-08 12:53:54 -07:00
parent 09d3d02971
commit 1f1da4b1a2
7 changed files with 26 additions and 18 deletions

View file

@ -8,18 +8,18 @@ import pypandoc
from bs4 import BeautifulSoup
from playwright.sync_api import sync_playwright
from aider import __version__
from aider import __version__, urls
aider_user_agent = f"Aider/{__version__} +https://aider.chat"
aider_user_agent = f"Aider/{__version__} +{urls.website}"
# Playwright is nice because it has a simple way to install dependencies on most
# platforms.
PLAYWRIGHT_INFO = """
PLAYWRIGHT_INFO = f"""
For better web scraping, install Playwright chromium with this command in your terminal:
playwright install --with-deps chromium
See https://aider.chat/docs/install/optional.html#enable-playwright for more info.
See {urls.enable_playwrite} for more info.
"""