Skip to content

A simple use-case showing how to find relevant information on a webpage using a LLM and Playwright

Notifications You must be signed in to change notification settings

RDeluxe/llm-parsing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING: For Facebook event pages, this script will only work if Facebook localize you in France (French text). For other languages, set the correct text in the downloadHTML function.

  1. Install deps with pnpm install
  2. Create a .env file with your OpenRouter API key
  3. Setup playwright with pnpm exec playwright install chromium
  4. Change the url in index.ts
  5. Run the script with pnpm dev

You should see a nice JSON response in the console.

About

A simple use-case showing how to find relevant information on a webpage using a LLM and Playwright

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published