Git Product home page Git Product logo

Comments (5)

dustyny avatar dustyny commented on August 15, 2024 1

Thank you. I'll let you know how it goes. I just have to workout another part of the pipeline first.

from news-please.

fhamborg avatar fhamborg commented on August 15, 2024

I'm assuming you're planning to run news-please in CLI mode, since you mentioned storing to MySQL DB. When designing news-please, running it in parallel was one of the design requirements so that should actually work but we've never tested it yet.

You should be able to run news-please in parallel by setting up a different sitelist.hjson file on each of the instances: each instance would deal with a different subset of all the sites that you're planning to crawl. The config.cfg file would be the same on all of them.

from news-please.

dustyny avatar dustyny commented on August 15, 2024

Yes I am planning on running it in CLI mode. I'll see if I can get it to work in a AWS container cluster and report back my results. I have a few questions before I start.

When I restart the docker containers any local files will be destroyed. Am I correct that this should not be a problem because the crawl history is persisted to MySQL?

You're suggesting that I segment my crawlers by domain. In this case each node will have a unique sitelist.hjson.
Example:

  • Node-1
  1. Publication_1.com
  2. Publication_2.com
  • Node-2
  1. Publication_3.com
  2. Publication_4.com
  • Node-3
  1. Publication_5.com
  2. Publication_6.com

Is it possible to use subdomains and path in the hjson?
Example:

  • Node-1
  1. publication_1.com
  2. news.publication_2.com
  • Node-2
  1. publication_1.com/sports
  2. publication_3.com
  • Node-3
  1. fashion.publication_2.com
  2. publication_4.com

from news-please.

fhamborg avatar fhamborg commented on August 15, 2024

When I restart the docker containers any local files will be destroyed. Am I correct that this should not be a problem because the crawl history is persisted to MySQL?

Yes.

You're suggesting that I segment my crawlers by domain. In this case each node will have a unique sitelist.hjson.

Correct.

Is it possible to use subdomains and path in the hjson?

Yes, but make sure to set sitemap_allow_subdomains to False in https://github.com/fhamborg/news-please/wiki/configuration

from news-please.

fhamborg avatar fhamborg commented on August 15, 2024

Closing this for now. Feel free to reopen in case any issues occurs or you wanna share your experience with the community. Thank you!

from news-please.

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.