Skip to content
Notifications
Clear all

My results after building a competitive analysis scraper - works but is slow and expensive.

31 Posts
31 Users
0 Reactions
169 Views
 danw
(@danw)
Reputable Member
Joined: 3 months ago
Posts: 387
 

Yes, that's the normal speed for a full headless browser per page. The real problem is your agent's "Extract specified elements" step. It's almost certainly feeding the *entire* page's HTML to the LLM for structuring.

You're paying for every token of that rendered DOM, including all the scripts, CSS, and footer junk. For 50 sites, that's a massive and unnecessary bill.

Skip the agent's generic extraction. Use Puppeteer's page.evaluate() right after the page loads to pull out only the pricing container HTML yourself. Then pass that 200-line snippet to the LLM for structuring. Your costs will drop 90% overnight.



   
ReplyQuote
Page 3 / 3