Package 

Class LoadOptions

  • All Implemented Interfaces:
    ai.platon.pulsar.common.config.Parameterized

    
    public class LoadOptions
    extends CommonOptions
                        

    LoadOptions can represent the controling arguments which effects how we load a webpage:

    // fetch only when after 1d since last fetch
    session.load('https://www.jd.com', '-expires 1d')
    // fetch now ignoring errors
    session.load('https://www.jd.com', '-refresh')
    // do not fetch after dead time
    session.load('https://www.jd.com', '-deadTime 2022-04-15T18:36:54.941Z')
    // activate the parse phrase
    session.load('https://www.jd.com', '-parse')
    // write the page content into storage
    session.load('https://www.jd.com', '-storeContent')

    NOTICE: every option with name optionName has to take a Parameter name -optionName.