Skip to content

SurtPrefixedDecideRule doesnt seem to work as expected #436

Description

@naveen17797

Heritrix version : 3.4.0-20210803

I have added my full configuration file here

https://gist.github.com/naveen17797/b119d62ef3c0a20e656cae5ea56d5821

 <bean id="acceptSurts" class="org.archive.modules.deciderules.surt.SurtPrefixedDecideRule">
  <property name="decision" value="ACCEPT"/>
  <!-- crawl only from seed domains -->
  <property name="seedsAsSurtPrefixes" value="true" />
  <!-- <property name="alsoCheckVia" value="false" /> -->
  <!-- <property name="surtsSourceFile" value="" /> -->
  <!-- <property name="surtsDumpFile" value="${launchId}/surts.dump" /> -->
  <!-- <property name="surtsSource">
        <bean class="org.archive.spring.ConfigString">
         <property name="value">
          <value>
           # example.com
           # http://www.example.edu/path1/
           # +http://(org,example,
          </value>
         </property> 
        </bean>
       </property> -->
 </bean>

For example i have added reddit.com to the seeds list, but i find urls from other domains are present on the crawl log, but since seedsAsSurtPrefixes is set to true the expected behaviour would be to filter the urls only from the seed domain ( if i am not mistaken )

2021-09-14_17-37

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions