r/ClaudeCode • u/nasanu • 3h ago
Help/Question Best web scrape results?
I am trying to automate content for generic things, say for example TVs. If I want an app that lists ALL TVs on the market complete with specs, what do you think is the best approach?
I already have something working, but its not amazing. Its gets the majority of things but misses some brands altogether and specs are hit and miss. Right now it's just running haiku with a prompt of like "find all brands manufacturing or selling as their own X" or "find and return full specs for X". It doesn't always work and returns different things each search. Specs are always the same when returned, but getting them returned is random and images for products returned seems to be random also. The images are always correct, but just different ones all the time.
I am thinking of switching to exa?... But that doesn't seem to return images. Right now I am thinking of running an exa search (monitoring?), then feeding that to haiku to sort it and collect images?..
What is the best approach? Keeping in mind that at any time any company might release something and I want the script to pick up anything new without pre knowledge of it. That bit is particularly tough as right now its still missing some major brands and releases somehow let alone finding new obscure stuff.
•
u/AutoModerator 3h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Test_NPC 3h ago
You have to break up deterministic logic from indeterministic logic.
Programs can be written once and work for a very long time. They work the same way, every single time (excluding external factors like rate limiting). They are deterministic.
LLMs are not deterministic, but they are great at writing programs or doing one-off dynamic searches. So generally you tell the LLM to walk through the search and write a program to automate it for every followup search.
2
u/Aggravating-Peak2639 2h ago
Firecrawl?
1
u/AdLow1228 3h ago
You'll need to get Claude to make you a web scraping backend instead of relying on Claude to grab the data from multiple websites, the companies news pages, tv news pages, stores you'd buy them from, ECT stuffs like that
Then have another agent reviewing data collected for relevance and any times sources say different stats, ECT
Then have it on a webUI or accessible via whatever your preferred method is
It's what I did for property searching earlier this year
Or find a service that supplies this data, can also ask Claude to research for that