Menu

Double loop not working

Help
batis
2012-07-24
2012-09-04
  • batis

    batis - 2012-07-24

    Hi,

    Can somebody check my config file to see what's wrong with it please... It
    seems like it even doesn't get into the second loop !

    http://pastebin.com/x1pKdEDq

    Thanks in advance

     
  • Selvin Fehric

    Selvin Fehric - 2012-07-24

    Again, you didn't give us the url that you are crawling, so I couldn't test it
    :) If it doesn't enter the second loop, maybe the list in that loop is empty?
    First check that.

     
  • nutcracker

    nutcracker - 2012-07-25

    try to check the first loop ,please

     
  • batis

    batis - 2012-07-25

    Again, i'm sorry for disturbing...

    org.apache.commons.httpclient.util.URIUtil.encodeQuery returned bad links in
    the second loop, replacing it with sys.fullURL solved the problem...

    It tooks me more than a day to figure it out... but i'm making improvement in
    errors detection, I hope this will be my last "useless" spam xD

    Thanks again guys :)

     
  • batis

    batis - 2012-07-25

    BTW, in the generated xml (using this code on two websites) I have malformed
    characters:

    1st situation: html source in utf-8, xml stored using encoding="UTF-8" , but
    got: "Ajdarević" instead of "Ajdarević"

    2nd situation: html source in iso-8859-1 (contains a lot of accented letters:
    éàè...), I want to store data using encoding="UTF-8", how can I do so
    correctly?

    Thanks in advance again :)

     

Log in to post a comment.