mishushakov / llm-scraper

Turn any webpage into structured data using LLMs
MIT License
2.42k stars 147 forks source link

Example execution commands #6

Closed strawberrymelonpanda closed 7 months ago

strawberrymelonpanda commented 7 months ago

I'm not a typescript dev, so I struggled a bit with how to actually execute the code shown in the Readme.md and the /examples folder.

I eventually ended up with

npx playwright install
npx tsx examples/local.ts

(editing the model path)
Not sure if this is the best way.

mishushakov commented 7 months ago

Will make a more detailed readme on this soon. TypeScript is not a requirement though 😄

gunar commented 5 months ago

Using npx tsx didn't work for me:

ERROR: Top-level await is currently not supported with the "cjs" output format

Wondering how to run this project :)

mishushakov commented 4 months ago

You should switch your project to ESM modules