Hi, 

I am using Nutch for news sites crawling, I have a problem with one of
them that publishes the urls with & instead of &. I discovered the
use of the url normalizer and the regex-normalize.xml configuration
file. Unfortunately I did not find too much examples about how to use
the regular expressions and substitutions, so I was trying different
combinations to make the transformation but it did work. 

Basically what I want is to convert  

noticia.jsp?CAT=126&TEXTO=100000109668

in 

noticia.jsp?CAT=126&TEXTO=100000109668

because otherwise Nutch is not capable to crawl those pages. 

I am using Nutch 0.8.1 and I tried several different substitution
expressions, but finally I chose the next entry in regex-normalize.xml
but it did not work, so I assume that something is wrong 


<regex>
  <pattern>(.*)\&amp;amp;TEXTO(.*)</pattern>
  <substitution>$1&amp;TEXTO$2</substitution>
</regex>


Could anyone help me with this substitution, please? 


Thanks in advance, 

                Javier


Reply via email to