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
ed4f527e
Commit
ed4f527e
authored
Apr 13, 2020
by
win 10
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
5bb9510d
b327c7a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
src/main/java/com/zhiwei/media_data_crawler/crawler/ZhihuAnwserCrawlerParse.java
+9
-8
src/main/java/com/zhiwei/media_data_crawler/data/DataCrawler.java
+4
-0
No files found.
src/main/java/com/zhiwei/media_data_crawler/crawler/ZhihuAnwserCrawlerParse.java
View file @
ed4f527e
...
@@ -286,14 +286,15 @@ public class ZhihuAnwserCrawlerParse {
...
@@ -286,14 +286,15 @@ public class ZhihuAnwserCrawlerParse {
}
}
public
static
void
main
(
String
[]
args
){
public
static
void
main
(
String
[]
args
){
// String url = "https://www.zhihu.com/question/288128510";
String
url
=
"https://www.zhihu.com/question/67992264"
;
// Date endDate = TimeParse.stringFormartDate("2018-09-20 08:00:00");
Date
endDate
=
TimeParse
.
stringFormartDate
(
"2010-09-20 08:00:00"
);
// try{
try
{
// getAnswerList(url,endDate, null);
getAnswerList
(
url
,
endDate
,
null
);
// }catch (Exception e){
}
catch
(
Exception
e
){
// e.fillInStackTrace();
e
.
fillInStackTrace
();
// }
}
getAnswerCount
(
"https://www.zhihu.com/question/41539825"
,
null
);
int
count
=
getAnswerCount
(
"https://www.zhihu.com/question/67992264"
,
null
);
System
.
out
.
println
(
count
);
}
}
}
}
src/main/java/com/zhiwei/media_data_crawler/data/DataCrawler.java
View file @
ed4f527e
...
@@ -356,7 +356,11 @@ public class DataCrawler {
...
@@ -356,7 +356,11 @@ public class DataCrawler {
* @return List<LunTanData> 返回类型
* @return List<LunTanData> 返回类型
*/
*/
public
static
List
<
LunTanData
>
getLunTanData
(
String
word
,
ProxyHolder
proxy
,
String
startTime
,
String
endTime
)
{
public
static
List
<
LunTanData
>
getLunTanData
(
String
word
,
ProxyHolder
proxy
,
String
startTime
,
String
endTime
)
{
try
{
return
TianYaCrawlerParse
.
getLunTanData
(
word
,
proxy
,
startTime
,
endTime
);
return
TianYaCrawlerParse
.
getLunTanData
(
word
,
proxy
,
startTime
,
endTime
);
}
catch
(
Exception
e
)
{
return
Collections
.
emptyList
();
}
}
}
/**
/**
...
...
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