Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crawl Job Settings Documentation for 3.4.0 #343

Closed
mutlurasit opened this issue Jul 30, 2020 · 8 comments
Closed

Crawl Job Settings Documentation for 3.4.0 #343

mutlurasit opened this issue Jul 30, 2020 · 8 comments
Labels

Comments

@mutlurasit
Copy link

Hello,

I am trying to understand crawler-beans.cxml usage in Heritrix but can't find any best practice articles or detailed manual anywhere. There are a few documentation floating on the net and some explanation inside .cxml but they are either out dated or not complete.

Wiki has a good page for basic usage but as the name suggest it is basic. The rest seems to refer an older version of Heritrix.

Is there any source I am missing or a place where I can examine good practice examples?

Sorry if this is not the appropriate platform for the request.

@hennekey
Copy link
Contributor

Hey @mutlurasit can you elaborate a little on what you need help trying to do?

The cxml file is essentially the configuration for a "type" of crawl. They provide information for how a crawl is setup to run.

@mutlurasit
Copy link
Author

Thanks for your reply @hennekey I am trying to do things like;

  • Feeding a list of seeds to Heritrix but getting individual WARC files instead of one for all the crawl. The way around for this for me currently is creating separate jobs for each domain but I think that will be a problem as I crawl more and more sites.

  • Related to that I want to set up regular crawls for certain sites (for example crawl annually) not sure how to configure this.

@hennekey
Copy link
Contributor

@mutlurasit Are you code-savvy? You can implement custom processors to replace the ones you see in the cxml file to achieve custom behavior, like creating separate WARC files per domain. I do not believe that the existing code contains that logic.

Annually recrawling would be best accomplished with a cron schedule I think. Unless you want to keep the process running (and expect it to do so without issue) for the whole duration.

@mutlurasit
Copy link
Author

Thanks again @hennekey , I can't say I am that competent with coding but would appreciate if there is any source you can suggest that I can dig around. Do you know which part of the cxml (if any) deals with WARC creation?

Regarding scheduling, you are right that sound reasonable I will also look into that as well.

@hennekey
Copy link
Contributor

This is where the code finds the writer (and consequently the file) to use to persist data to a WARC: https://github.com/internetarchive/heritrix3/blob/master/modules/src/main/java/org/archive/modules/writer/WARCWriterProcessor.java#L155

@mutlurasit
Copy link
Author

Thank you very much one more time!

@ato ato added the question label Feb 15, 2021
@cgr71ii
Copy link

cgr71ii commented Sep 6, 2022

Hi! Regarding the question of the issue, is there any resource where documentation is updated and complete? I'm facing this problem, since the resources which I found are ReadTheDocs and the wiki, and they are either not complete/basic (e.g. logToFile property not documented) or not updated. Is this a problem which will be solved or is expected to dig into the code in order to understand the advanced options?

@ato
Copy link
Collaborator

ato commented Sep 6, 2022

e.g. logToFile property not documented

Looks like the logToFile property exists (1) on DecideRuleSequence and (2) on everything inheriting from Scoper.

  1. I've added DecideRuleSequence to the bean reference in f736bf2
  2. I've filed bug Bean reference missing inherited properties #497 but probably won't work on this myself right now.

is there any resource where documentation is updated and complete?

The Java API documentation is complete in the sense of listing every class and property.

Is this a problem which will be solved or is expected to dig into the code in order to understand the advanced options?

Digging into the code is sometimes a practical necessity to fully understand some of the options and behavior. Heritrix has no dedicated developers and problems are generally solved by affected users contributing fixes. :-)

@internetarchive internetarchive locked and limited conversation to collaborators Sep 30, 2022
@ato ato converted this issue into discussion #513 Sep 30, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

4 participants