Web scraping, or data scraping, means using a program to read a page and pull out the data you need, the way a person would, only every day and without typos. It makes sense when the data sits on a screen and there is no API to fetch it.
Before anything else: the first question I ask isn't technical, it's whether you have the right to collect that data. I only do legitimate collection, and I explain below what that means.

Scraping Is Plan B, Not Plan A
Scraping comes in when:
- the portal has no API, or the API doesn't provide that data;
- you have legitimate access to the data (it's your login, your equipment, public information);
- the volume or frequency makes copying by hand impractical.
A Real Example: Browser-based Collection From a Manufacturer Portal
For a solar energy client, I built collectors that fetch the plants' daily generation from the portals of three inverter manufacturers. Where the manufacturer offers an API, collection goes through it. Where there is no API and the data only appears on the web dashboard, collection is done by an automated browser: the bot logs in with the client's own account, opens the plant's screen and reads the numbers.
Some safeguards in that project:
- The account belongs to the client and the data belongs to the plants they operate. Nothing from third parties is collected.
- A human pace, not an attack. The bot makes few requests, with a pause between them.
- Idempotent writes. Running a day again corrects the data instead of duplicating it.
- Weekly reconciliation. A routine checks what is missing and reports why: portal down, screen changed, plant not communicating.
That data feeds the generation-versus-target screen of AYA's plant operations portal, which used to depend on a spreadsheet built by hand.
Legal And Ethical Limits, Straight Up
Just because data shows up on a screen doesn't mean it can be collected. The points I check before accepting a project:
- The site's terms of use. Many prohibit automated collection. If they do and you have no other agreement with the site owner, I don't do it.
- Robots.txt. It's the file where a site says what bots may visit. It isn't law, but I respect it.
- Someone else's login. I only use credentials that are yours and that the service allows to be used this way. I don't bypass passwords, protective captchas or access blocks.
- Personal data. Names, phone numbers, emails and tax IDs (in Brazil, the CPF) are personal data, even when public. Brazil's data protection law, the LGPD (similar to the GDPR), requires a legal basis and a purpose to process them. Building contact lists for mass messaging is exactly what I don't do. The ANPD, Brazil's data protection authority, is the body that enforces this.
- Load on the site. A bot that brings down someone else's site is an attack, not collection. The pace is always low.
If the project doesn't pass these points, I say so in the first conversation and, when there is one, suggest the legitimate route: requesting API access, licensing the dataset from whoever owns it or making an agreement with the site owner.
How It's Done
Direct Reading Or a Browser
When the page delivers the data directly in the HTML or through a simple internal call, reading is direct, fast and light. When the page only shows the data after running code in the browser, or depends on a multi-step login, I use an automated browser (Playwright or Puppeteer).
Store And Compare
Each collection goes into a database with a date and time. That gives you history, lets you compare with the previous day and get an alert when something changes (a price, a status, a ranking).
Alert When It Breaks
Sites change. The bot checks whether it found what it expected; if it didn't, it raises an alert instead of saving an empty result. Adjusting the bot after a change is part of maintenance.
What To do With The Collected Data
Collected data is worth what it turns into. It can feed a monthly automated report, a screen inside solar plant monitoring software or another system, or an email alert. If the data comes in a document (PDF, image) and needs to be interpreted, AI automation does the reading.
Tell me what data you need and where it comes from. I'll tell you whether it's feasible, technically and legally.