Scrapping websites and finding unique values
from dudesss@lemmy.ca to programming@programming.dev on 07 May 11:39
https://lemmy.ca/post/64491926
from dudesss@lemmy.ca to programming@programming.dev on 07 May 11:39
https://lemmy.ca/post/64491926
Anyone have recommendation for how I can scrap a website, and extract unique names – such as product names.
I was thinking of using some website scrapping tool, then a local LLM to find unique product names.
#programming
threaded - newest
Usually you’d have to be the owner or operator of a website to scrap it. I guess hacking into the server and deleting all data would also work.
I was thinking of doing it once a day. Even if I have to manually initiate it to be legal. It would only be for personal non-public nor commercial reasons.
It would save me time from manually copying the HTML over to an LLM or something.
Just read the robots.txt and obey the rules. Also set your user agent string properly. We’ve had crawlers forever on the internet and that’s the long accepted way to give consent or revoke consent, for website owners. Either you match a disallow directive and need to stop. Or you’re completely fine to scrape it.
Neat, I’ve never heard of these.
I was joking about your use of scrap and scrapping, as in to remove or to cancel :)
Web scraping only has one p
You are probably talking about scraping a website. There are usually tools for this already that make that easy. Last time I had to do something like that I used scrapy.
Scrappy created exactly for this use case. I used to work in project for product info scraping when LLMs didn’t exist. So you don’t really have to use LLM. It’s usually semi-structured data. Your biggest pain will likely be SPAs with JS which need to run in order to load content. If you need to render SPAs check Selenium web driver or similar