All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.platon.pulsar.examples.sites.amazon.AmazonCrawler Maven / Gradle / Ivy

The newest version!
package ai.platon.pulsar.examples.sites.amazon;

import ai.platon.pulsar.skeleton.context.PulsarContexts;

import java.util.Map;

class AmazonCrawler {

    public static void main(String[] argv) throws Exception {
        PulsarContexts.createSession().scrapeOutPages(
                "https://www.amazon.com/Best-Sellers/zgbs",
                "-outLink a[href~=/dp/]",
                Map.of("title", "#title", "ratings", "#acrCustomerReviewText")
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy