May 27th, 2020
An Evolution of a Programmer New to Web Scraping

Programmers new to web crawling have a typical progression of maturity that we wanted to document. We did this, our developer friends have done it, our new hires get bullied into not doing it.

  1. Use requests and beautiful soup (learned from a tutorial on Medium or Quora) that shows you step by step how to "crawl the web".
  1. Hit issues with link extraction, speed, obeying Robots.txt, and reconsider everything or try and write custom code for each.
  1. Hit issues with downloading images, pdfs, and other media.
  1. Realize that this is a lot of wheels that need to be reinvented. Like anything else complex, maybe there is a framework for this. Learn about frameworks.
  1. Use a framework. Solves 80% of all problems. Life is good again.
  1. Get restricted by many websites because you just unleashed Scrapy on them.
  1. Learn clever ways to pretend to be human to overcome blocks.
  1. Get completely blocked at the IP level. You now learn about the term IP Block, the cancer of web crawlers.
  1. Try some free proxies (after much googling) write everything around an auto-scraping online free proxy database that you aggressively update every 5 minutes "just to be safe".
  1. Realize they simply dont work.
  1. Go away for a week.
  1. Reluctantly look at solving IP blocks with commercial rotating proxy services like Proxies API and realize the value of not reinventing the wheel vs spending months fighting every [possible vagary of the internet. Or decide that you are done with coding this and that this is not your code business anyway and also realize that your web crawler code is probably bigger than your main business logic, decide to use a cloud-based web crawler like TeraCrawler.io

Share this article:

Get our articles in your inbox

Dont miss our best tips/tricks/tutorials about Web Scraping
Only great content, we don’t share your email with third parties.
Icon