Giter Club home page Giter Club logo

Comments (5)

sjdirect avatar sjdirect commented on August 17, 2024

Not enough information to keep this bug open. Need full example and configuration.

from abotx.

junalmeida avatar junalmeida commented on August 17, 2024

The problem is when you pass to crawler the Impls

       var crawler = new CrawlerX(crawlConfig, new ImplementationContainer() {
                PageRequester = new PageRequester(crawlConfig, proxy)
            });

Changing this to:

            var crawler = new CrawlerX(crawlConfig);
            crawler.Impls.PageRequester = new PageRequester(crawlConfig, proxy);

Solves the problem. But this issue is still valid. Maybe ImplementationContainer should be abstract and CrawlerX could throw a meaningful exception.

from abotx.

sjdirect avatar sjdirect commented on August 17, 2024

If you pass in an ImplementaionContainer it is expecting that all properties must set. If you use the ImplementationOverride class, then you can just set the impls that you care about and the defaults will be used for all other impls. See an example here.

I understand this is confusing and will consider making the ImplementationOverride an abstract class or by just requiring the ImplementationOverride explicitly in the constructor.

from abotx.

sjdirect avatar sjdirect commented on August 17, 2024

Todo:
1: Either make ImplementationContainer an abstract class or require ImplementationOverride in the constructor.
2: Do the same for parallelCrawler
3: Update parallelCrawler docs page

from abotx.

sjdirect avatar sjdirect commented on August 17, 2024

Now Both CrawlerX and ParallelCrawlerEngine REQUIRE an ImplementationOverride instead of ImplementationContainer. This has been fixed with nuget version 1.2.126

from abotx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.