Package com.googlecode.flaxcrawler.download

Examples of com.googlecode.flaxcrawler.download.DefaultProxyController


    @Ignore
    public void testDefaultParser() throws MalformedURLException, DownloadException {
        List<Proxy> proxies = new ArrayList<Proxy>();
        proxies.add(Proxy.NO_PROXY);

        DefaultProxyController proxyController = new DefaultProxyController();
        proxyController.setProxies(proxies);

        DefaultDownloader downloader = new DefaultDownloader();
        downloader.setProxyController(proxyController);
        downloader.setTriesCount(3);
View Full Code Here


    @Ignore
    public void testLoginDownloader() throws DownloadException, MalformedURLException {
        List<Proxy> proxies = new ArrayList<Proxy>();
        proxies.add(Proxy.NO_PROXY);

        DefaultProxyController proxyController = new DefaultProxyController();
        proxyController.setProxies(proxies);

        LoginDownloader downloader = new LoginDownloader();
        downloader.setLoginUrl("http://qiq.ru/?action=login");
        downloader.setPostData("login=lex9889&pass=qweasdzxc");
        downloader.setProxyController(proxyController);
View Full Code Here

TOP

Related Classes of com.googlecode.flaxcrawler.download.DefaultProxyController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.