Save urls

i have recursive parse block to capture urls i want to save it in txt file each url in line

i tried this but only saved one url thats all

FOREACH url IN urls

// Query the single URL

BLOCK:FileWriteLines

path = $“UserData/test/<input.USERNAME>.txt”

lines = @url

ENDBLOCK

END

hello friend to save I think you will have to use FileAppendLines if I’m not mistaken I think that’s that

1 Like

i managed to make this work but i just noticed something.
how i can make parse block capture all pages after loop is done ?

im using this scriopt
https://justpaste.it/8xxuc

BLOCK:FileAppendLines
path = $"<input.USERNAME>.txt"
lines = $["", “”]
ENDBLOCK