Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
searchhotcrawler
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhiwei
searchhotcrawler
Commits
ca4c9781
Commit
ca4c9781
authored
Jul 19, 2021
by
leiliangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加淘宝日志,查看第一次响应结果
parent
06b492d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zhiwei/searchhotcrawler/crawler/TaoBaoHotSearchCrawler.java
+2
-2
No files found.
src/main/java/com/zhiwei/searchhotcrawler/crawler/TaoBaoHotSearchCrawler.java
View file @
ca4c9781
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment