Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media_data_crawler
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
media_data_crawler
Commits
59dd3601
Commit
59dd3601
authored
Aug 09, 2018
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
贴吧回答采集增加所在贴吧 为source
parent
2f99cb1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/main/java/com/zhiwei/media_data_crawler/crawler/BaiduTiebaCrawlerParse.java
+3
-1
No files found.
src/main/java/com/zhiwei/media_data_crawler/crawler/BaiduTiebaCrawlerParse.java
View file @
59dd3601
...
...
@@ -115,6 +115,8 @@ public class BaiduTiebaCrawlerParse extends HttpClientTemplateOK {
if
(
title
==
null
||
title
.
length
()
<
1
)
{
title
=
document
.
select
(
"#j_core_title_wrap > h3"
).
text
();
}
String
source
=
null
;
source
=
document
.
select
(
"div.card_top.clearfix > div.card_title > a"
).
text
();
System
.
out
.
println
(
title
);
for
(
Element
element
:
elementes
)
{
String
time
=
null
;
...
...
@@ -136,7 +138,7 @@ public class BaiduTiebaCrawlerParse extends HttpClientTemplateOK {
}
if
(
time
!=
null
&&
time
.
length
()
>
1
)
{
TiebaData
tbd
=
new
TiebaData
(
"http://tieba.baidu.com/p/"
+
aid
,
title
,
time
,
tid
,
null
,
author
,
content
,
aid
);
TiebaData
tbd
=
new
TiebaData
(
"http://tieba.baidu.com/p/"
+
aid
,
title
,
time
,
tid
,
source
,
author
,
content
,
aid
);
System
.
out
.
println
(
tbd
.
toString
());
list
.
add
(
tbd
);
}
...
...
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