Dynamic queries file in scheduler?

Discussion in 'A-Parser Support Forum' started by r3dn4x, Jan 26, 2016.

  1. r3dn4x

    r3dn4x A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 22, 2014
    Messages:
    14
    Likes Received:
    2
    Is it possible to use some file naming method to use a unique queries file on each scheduled run? For example:

    Day 1:
    /scrape_Jan26.txt
    Day 2:
    /scrape_Jan27.txt

    etc?

    It seems it's either doing it this way, or having one static file that grows gigantic and doesn't really serve my purpose. I can't think of another solution besides using the API, which I'd rather not in this case.

    I am not seeing a date method in the file naming structure, only $datefile.format()... are there others?
     
  2. r3dn4x

    r3dn4x A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 22, 2014
    Messages:
    14
    Likes Received:
    2
    Ah, just realized there are custom macros: [% USE monthday = date(format = '%b%d', locale = 'C') -%]
     
    Forbidden likes this.
  3. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    Support likes this.
  4. r3dn4x

    r3dn4x A-Parser Enterprise License
    A-Parser Enterprise

    Joined:
    Jan 22, 2014
    Messages:
    14
    Likes Received:
    2
    Is it possible to enter a value like this for the queries file?
     
  5. Forbidden

    Forbidden Administrator
    Staff Member A-Parser Enterprise

    Joined:
    Mar 9, 2013
    Messages:
    3,337
    Likes Received:
    1,795
    It's not possible, queries file should be known name
     

Share This Page