public Site setUserAgent(String userAgent) {
        this.userAgent = userAgent;
        return this;
    }
set user agent

@param userAgent userAgent
@return this
webmagic-core/src/main/java/us/codecraft/webmagic/Site.java