Commit ca4c9781 by leiliangliang

增加淘宝日志,查看第一次响应结果

parent 06b492d4
......@@ -46,8 +46,8 @@ public class TaoBaoHotSearchCrawler {
String[] splitEnc = enc.split(";");
String _m_h5_tk_enc = splitEnc[0];
headerMap.put("cookie", _m_h5_tk + ";" + _m_h5_tk_enc);
log.info("获取cookie",_m_h5_tk + ";" + _m_h5_tk_enc);
log.info("获取响应结果",response);
log.info("获取cookie: {}",_m_h5_tk + ";" + _m_h5_tk_enc);
log.info("获取响应结果: {}",response);
} catch (Exception e) {
log.error("解析淘宝热搜时出现解析错误,页面结构有问题", e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment