Skip to content

Instantly share code, notes, and snippets.

View foolgry's full-sized avatar
😜
I may be slow to respond.

Foolgry foolgry

😜
I may be slow to respond.
View GitHub Profile
@etrobot
etrobot / langgraph_control_browser.py
Created April 18, 2024 14:00
langgraph generates python script to control the existing chrome
from langchain_openai import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel, Field
import json,urllib.request,websockets,asyncio
from typing import TypedDict, List
import textwrap,html
from bs4 import BeautifulSoup, Tag, NavigableString,Comment
import os
from dotenv import load_dotenv,find_dotenv
load_dotenv(find_dotenv())