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



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to