1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Join our Telegram chat: https://t.me/a_parser_en
    Dismiss Notice

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:
    174
    Likes Received:
    30
    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,348
    Likes Received:
    2,096
    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