public static Set<URL> extracting(URL url, String queryOrRegex) {
		Set<URL> result = null;
		Document doc = null;
		try {
			if (!queryOrRegex.startsWith("#")) {
				doc = getJsoupDocumentByUrl(url.toFullString());
				result = getAbsoluteURLsByJSoupQuery(doc, queryOrRegex);
			} else {
				result = getAbsoluteURLsByRegex(url, queryOrRegex);
			}
		} catch (Throwable e) {
			logger.error(url.toFullString() + " extracting links failure " + e.getMessage());
		}
		return result;
	}