Fieldwork Atlas · A beginner’s guide

How does web
scraping work?

Imagine checking a supplier’s website every morning to see how many parts you can sell. Web scraping lets a computer read the page for you. See how a shop uses ScraperAPI to get the page and work out what it can offer today.

Parcels and a barcode on a colourful paper atlas, examined through a magnifying glass
FIELDWORK ATLASRetail field notes

Start here · A fictional example

Can you sell ten parts today?

Your supplier is the company you buy from. Its website shows two parts ready to send and eight due next week. Your shop has a separate page where customers place orders. What quantity should that page show?

  1. The supplier publishes the numbers.Its product page says “2 ready now” and “8 due next week”. If you checked by hand, you would read both lines.
  2. ScraperAPI gets a copy of the page.Your shop’s program sends ScraperAPI the web address. ScraperAPI returns the page contents, including both stock figures.
  3. Your shop’s program picks the right number.You give it a rule: for immediate delivery, count only parts ready now. The shop offers 2 parts today. It can check again when the delivery arrives.
What does “API” mean here?

An API is a way for one program to ask another program for something. In this example, the shop asks for a web page and receives its contents. Its own software then reads the quantity.

Where does ChatGPT fit in?

If you need a program to read the page or show the answer, ChatGPT can help you write it. Start with sample numbers and check the result yourself. Our price-checker tutorial · Ad gives you a prompt to try.

Now try a harder reply: the supplier leaves the stock box empty. Try the stock checker · Ad →

Real retail projects

Two shops put that idea to work.

Stockroom reads supplier pages to check what can ship. The independent retailer reads competitors’ offers to check what a comparable item costs.

Beyond the completed projects

Explore three illustrative case studies

Your first experiment

Which page do you keep checking?

Choose a stock, price or catalogue question. Start with one page and an answer you can check by eye.

Choose a project