Web Scan Base
Safe and polite reading of product pages
Odoo 20.0
Hidden/Tools
Odoo.sh • On-premise
OPL-1
✓ 35 automated tests
84% code coverage
★
Did this module help you? It is free, built and maintained by the Terrabit developers. If it saved you time, a rating on this page is the best way to say thanks — and it helps other Odoo users find it too. Thank you for your support!
★ Leave a rating ↓
Overview
Technical base for the modules that read product pages on the web: the pages of the competitors, the pages of the vendors that give no feed. It has no menu and no data of its own; the modules that use it decide what to read and what to write.
Safe reading
- Public addresses onlyan http(s) address is read only when its host resolves to public IP addresses. Loopback, private networks, link-local and cloud metadata addresses are refused, and the address the connection really reaches is checked again when it opens, so a DNS answer changed in between is refused too.
- Redirects checkedthey are followed by hand, at most 5, each one checked the same way.
- Limited sizea page is read in pieces and cut at 3 MiB; a content type that is not expected is refused.
Polite reading
- robots.txtis respected: a page that the site forbids is not read (state Blocked). It can be turned off by the module that uses the base, per site.
- A pauseis kept between two requests to the same site; the scheduled reading takes the sites in turn, so that the pause of one site is spent on the others.
- No way around protectionsa page of protection against robots (CAPTCHA, Cloudflare challenge, 403, 429) only gives the state Blocked. Nothing tries to get around it: ask the site for a feed or an API instead.
What is read from a page
- schema.org data(JSON-LD and Microdata): name, brand, SKU, MPN, barcode (GTIN), images, description and the offers, with their price, currency and availability. When there are several offers, the cheapest one in stock is kept.
- Selectors(XPath, CSS, regular expression, JSON-LD path) configured for the sites without schema.org data, with a table of values (for example In stock → in stock).
- The usual HTML patterns, as a last resort, for the price only; the old, struck through prices are left out. A price found this way is marked as such.
- Prices written the Romanian or the English way
1.299,00 lei,1,299.00,1 299,99.
Checks
- Another product: a page that declares another barcode, or another code (compared without spaces, dashes and dots), than the product expected gets the state Other Product.
- Jump of price: a price that changed more than a set percentage since the previous reading gets the state Suspect and waits for a confirmation.
For the developers
web.scan.source.mixin: a page read again and again, with its state, its last reading and the failed readings in a row; the scheduled action skips a page after 5 failures.web.scan.history.mixin: the history of the values shown by a page, as intervals: a new line only when a value changes, otherwise the last line is extended.utils.fetch,utils.extract,utils.codes,utils.scan: the same functions without the database.
Versions
20.0.1.0.1 (2026-10-28)
- Migration to 20.0. No functional change; the tests of the scanning mixin build their in-memory
record directly, because Odoo 20 no longer allows
new()on an abstract model.
19.0.1.0.1 (2026-10-22)
- A normal page was reported as blocked by a protection against robots when it only loaded the
detection script that Cloudflare adds to every page (
/cdn-cgi/challenge-platform/scripts/jsd/, seen on granit-parts.ro), or when it had a CAPTCHA in a login or contact form. Only the challenge pages (Cloudflare "Just a moment...", DataDome, PerimeterX) and the answers 403, 429 and 503 count now. Behavior change: such pages are read instead of being marked Blocked.
19.0.1.0.0 (2026-10-22)
- First version: safe and polite reading of product pages (public addresses only, checked again when the connection opens, redirects checked, robots.txt, pause per site, protection against robots reported as blocked), schema.org extraction (JSON-LD, Microdata), selectors, price patterns, barcode and code checks, jump of price, the source and history mixins.
Modules published on Odoo Apps
Silver PartnerImplementation & Support
Need help getting started?
Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.
Questions about this module? Write to us — the developers who build it will answer.
More apps by Terrabit
Other modules from the same publisher, built to work together. All apps →
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 874 |
| Technical Name |
deltatech_web_scan |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module