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

com.serphacker.serposcope.di.ScrapClientFactoryImpl Maven / Gradle / Ivy

The newest version!
/* 
 * Serposcope - SEO rank checker https://serposcope.serphacker.com/
 * 
 * Copyright (c) 2016 SERP Hacker
 * @author Pierre Nogues 
 * @license https://opensource.org/licenses/MIT MIT License
 */
package com.serphacker.serposcope.di;

import com.serphacker.serposcope.scraper.http.ScrapClient;

/**
 *
 * @author admin
 */

public class ScrapClientFactoryImpl implements ScrapClientFactory {

    @Override
    public ScrapClient get(String defaultUserAgent, int timeoutMS) {
        ScrapClient client = new ScrapClient();
        client.setUseragent(defaultUserAgent);
        client.setTimeout(timeoutMS);
        client.setInsecureSSL(true);
        return client;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy