import parser.*;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class ReceptMain {

    public static void main(String[] args) {
        ParserBase pb = new ParserBase();

        Ica i = new Ica();
        Koket k = new Koket();
        Tasteline tl = new Tasteline();
        Arla a = new Arla();

        EpubParser epub = new EpubParser();

        epub.parseBook(new File("F:\\Books\\Cooking\\fireandspice.epub"));

        // Kokaihop ko = new Kokaihop();

        List<String> wordsList = new ArrayList<>();
        // wordsList.add("kyckling");

        // wordsList.add("halloumi");
        // wordsList.add("potatis");
        // wordsList.add("kik�rtor");
        // wordsList.add("r�da linser");
        // wordsList.add("k�ttf�rs");
        // wordsList.add("paj");
        // wordsList.add("alkoholfri");
        // wordsList.add("lax");
        // wordsList.add("torsk");
        // wordsList.add("glass");
        // wordsList.add("hamburgare");
        // wordsList.add("jordgubbar");
        // wordsList.add("vetemj�l special");
        // wordsList.add("vita b�nor");
        // wordsList.add("parmesan");
        // wordsList.add("feta");
        // wordsList.add("lakritspulver");
        // wordsList.add("vit sirap");
        //wordsList.add("kladdig");
        //wordsList.add("snabb");
        //wordsList.add("enkel");

        i.findRecepiesWithSearchWords(wordsList, Ica.URL_SEARCH_PATTERN, Ica.PATH_SEPARATOR, Ica.BASE_URL,
        Ica.RECEPIELIST_ITEMS_XPATH, Ica.RECEPIE_TITLE_XPATH, Ica.COOKIE_CONSENT_BUTTON_XPATH);
        k.findRecepiesWithSearchWords(wordsList, Koket.URL_SEARCH_PATTERN, Koket.PATH_SEPARATOR, Koket.BASE_URL,
                Koket.RECEPIELIST_ITEMS_XPATH, Koket.RECEPIE_TITLE_XPATH, Koket.COOKIE_CONSENT_BUTTON_XPATH);
        tl.findRecepiesWithSearchWords(wordsList, Tasteline.URL_SEARCH_PATTERN, Tasteline.PATH_SEPARATOR,
                Tasteline.BASE_URL,
                Tasteline.RECEPIELIST_ITEMS_XPATH, Tasteline.RECEPIE_TITLE_XPATH,
                Tasteline.COOKIE_CONSENT_BUTTON_XPATH);
        a.findRecepiesWithSearchWords(wordsList, Arla.URL_SEARCH_PATTERN, Arla.PATH_SEPARATOR, Arla.BASE_URL,
                Arla.RECEPIELIST_ITEMS_XPATH, Arla.RECEPIE_TITLE_XPATH, Arla.COOKIE_CONSENT_BUTTON_XPATH);

        // ko.findRecepiesWithSearchWords(wordsList, Kokaihop.URL_SEARCH_PATTERN, Kokaihop.PATH_SEPARATOR, Kokaihop
        // .BASE_URL,
        // Kokaihop.RECEPIELIST_ITEMS_XPATH, Kokaihop.RECEPIE_TITLE_XPATH, Kokaihop.COOKIE_CONSENT_BUTTON_XPATH);
    }
}
