9
13 Comments

Who can teach me / point me to a great resource to create a web scraper?

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.

on October 22, 2019
  1. 2

    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.

  2. 1

    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 🤙

  3. 1

    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.

  4. 1

    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.

    1. 1

      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!

  5. 1

    (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)

    🤷‍♂️

    1. 1

      Haha :) Is it that easy? :)

  6. 1

    This comment was deleted 7 years ago

  7. 1

    This comment was deleted 4 years ago

    1. 1

      Because that’s the beginning of my new SaaS tool :)

      1. 1

        This comment was deleted 4 years ago

        1. 1

          The scraper is a means to an end. No one will use the scraper directly. :) It’s a necessity to offer the service though.

          1. 2

            This comment was deleted 4 years ago

            1. 1

              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

            2. 1

              That’s actually not a bad idea :)

              I’ll try it out :)) thanks!