Get the price information about products in some stores, see supported stores below.
Using the library JSOUP, is possible to read the page and select some data using css selectors.
public class App {
public static void main(final String[] args) throws ScraperNotFound, ParseException {
final PriceTag pricetag = new PriceTag();
final Product product = pricetag
.process("https://www.amazon.de/Nintendo-2500066-Switch-Konsole-Grau/dp/B01M6ZGICT");
System.out.println(product.getPriceAsText());
}
}
<dependency>
<groupId>com.github.lucasfsousa</groupId>
<artifactId>pricetag</artifactId>
<version>0.0.2</version>
</dependency>
- Amazon (tested: com, br, uk, de)
- Submarino
- Americanas
- Shoptime
- Saturn
- Media Markt
- Add support to others stores (Gamestop \o/)
- Improve documentation