src/main/java/com/solostudios/omnivoxscraper/impl/utils/index/OmniPageIndex.java
/**
     * Builds a map of the services.
     *
     * @param page The page with from which to build the map.
     *
     * @return The map of the services to urls for that service.
     */
Builds a map of the services.
@param page The page with from which to build the map.

@return The map of the services to urls for that service.
Builds a map of the services . @param page The page with from which to build the map . @return The map of the services to urls for that service .
private Map<String, URL> buildServiceMap(HtmlPage page) {
        return page.getByXPath("//ul/li[not(@data-categorie) and ../li/@data-categorie='OMNIVOX' and " + 
                               "(not(a/@class) or a/@class!=' produit-skytech') and a/@href and a/@href != " +
                               "'javascript:;']")
                   .parallelStream()
                   .map(e -> (DomNode) e)
                   .map(e -> (DomText) e.getFirstByXPath("./a/span/text()"))
                   .collect(HashMap::new, (Map<String, URL> map, DomText e) -> {
                                map.put(e.toString().strip(),
                                        scraper.getOmniURL(((DomAttr) e.getFirstByXPath("../../@href")).getNodeValue()));
                            },
                            Map::putAll);
    }
private Map < String , URL > buildServiceMap ( HtmlPage page ) { return page . getByXPath ( "//ul/li[not(@data-categorie) and ../li/@data-categorie='OMNIVOX' and " + "(not(a/@class) or a/@class!=' produit-skytech') and a/@href and a/@href != " + "'javascript:;']" ) . parallelStream ( ) . map ( e -> ( DomNode ) e ) . map ( e -> ( DomText ) e . getFirstByXPath ( "./a/span/text()" ) ) . collect ( HashMap :: new , ( Map < String , URL > map , DomText e ) -> { map . put ( e . toString ( ) . strip ( ) , scraper . getOmniURL ( ( ( DomAttr ) e . getFirstByXPath ( "../../@href" ) ) . getNodeValue ( ) ) ) ; } , Map :: putAll ) ; }
Builds a map of the services.
Builds a map of the services .
//noinspection CodeBlock2Expr //yucky hardcoded shit.