br-scraper
Version:
Brazilian electronic store web scrapping utility.
13 lines (10 loc) • 551 B
Markdown
Page link was redirected to another page via a meta tag.
Due to that, we needed to find the new link and do another request,
with different selectors to find the promotion page prices.
If a price element is not found via selectors, return NaN as the price.
Terabyte showed that when a product is no longer available, the price selectors will no longer exist,
so a default value and a check for the price elements was needed.