Modify CSV file format

Discussion in 'A-Parser Support Forum' started by scrapefun, Jul 7, 2022.

  1. scrapefun

    scrapefun A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Feb 24, 2015
    Messages:
    184
    Likes Received:
    34
    How would I modify the delimiter to use double commas ,, and the text qualifier to brackets [ ] instead of quotes?

    Here is the current csv format being used:

     
  2. Support

    Support Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 16, 2012
    Messages:
    4,557
    Likes Received:
    2,167
    Separators cannot be changed in tools.CSVline(). Instead, use the output with the template engine in the form you need, such as this:
    Code:
    [% '[' _ query _ '],,[' _ mail _ '],,[' _ creation_date _ ']' _ "\n" %]
     

Share This Page