mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
Add web page
This commit is contained in:
parent
6e5e195ea8
commit
dcb6100ce9
3 changed files with 53 additions and 19 deletions
|
@ -66,14 +66,14 @@ class Scraper:
|
|||
except Exception:
|
||||
self.playwright_available = False
|
||||
|
||||
def show_playwright_instructions(self):
|
||||
def get_playwright_instructions(self):
|
||||
if self.playwright_available in (True, None):
|
||||
return
|
||||
if self.playwright_instructions_shown:
|
||||
return
|
||||
|
||||
self.playwright_instructions_shown = True
|
||||
self.print_error(PLAYWRIGHT_INFO)
|
||||
return PLAYWRIGHT_INFO
|
||||
|
||||
def scrape_with_httpx(self, url):
|
||||
headers = {"User-Agent": f"Mozilla./5.0 ({aider_user_agent})"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue