I'm looking into something new. I can't (really) program myself but happy to learn. Does anyone know how to build a web scraper? Or do you know of a great resource I could use / watch? Want to build an MVP.
Scraping breaks really easily and all the time. You might be spending a lot of time just keeping the scraper working.
If possible I’d just get static data and build a prototype. Validate it first with a few people and if the values there maybe there’s a way to get REST/JSON access to the data.
Good point!
I’ve built several web scrapers in the past, both for data collection and as as SaaS application. I have to say that python has served me well - particularly packages like selenium and bs4 make it pretty simple. Like these other guys have said, there are a lot of security issues you’ll run into, but depending on the kind of data you’re scraping.. you can usually find away around it. Take your time!
Good luck, hit me up if you want a quick demo or something 🤙
Don't want to discourage you, but scrapers are hard, very hard, however easy they seem. Between captchas and proxies and everything, if you're not versed in programming, I'd really vouch against it. Also there's the problem of a thousand scrapers existing already.
Then again, if you really believe in the idea, go for it. I'd recommend some scripting language like PHP or Python. Just google it and millions of resources will pop out.
Best of luck.
Check out dashblock.com, parseur.com, or octoparse.com for no-code scrapers.
I haven't used any yet, but I'm considering Dashblock for a project I have coming up.
Nice examples! Dashblock is nice but pretty expensive. Of course you dont have to build the API part. But can quickly add up. I'll check out the rest too!
Very true!
(ruby)
require 'open-uri'
require ‘nokogiri’
page = open('http://example.com').read
data = Nokogiri::HTML(page).css(‘div.targetClass’)
result = { key: data }
File.write(‘path/filename.json’, result.to_json)
🤷♂️
Haha :) Is it that easy? :)
This comment was deleted 7 years ago
This comment was deleted 4 years ago
Because that’s the beginning of my new SaaS tool :)
This comment was deleted 4 years ago
The scraper is a means to an end. No one will use the scraper directly. :) It’s a necessity to offer the service though.
This comment was deleted 4 years ago
Thanks for the mention :) We also recently published a long blog post about Python web scraping: https://www.scrapingbee.com/blog/web-scraping-101-with-python
That’s actually not a bad idea :)
I’ll try it out :)) thanks!