package com.diaoyun.zion.chinafrica.bis;

import net.sf.json.JSONObject;

import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;

/**
 * 商品爬虫接口
 */
public interface IItemSpider {

    /**
     * 爬取商品数据
     * @param targetUrl
     * @return
     */
    JSONObject captureItem(String targetUrl) throws URISyntaxException, IOException, ExecutionException, InterruptedException, TimeoutException;

}
