Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat
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
chenweiyang
wechat
Commits
ed90a468
Commit
ed90a468
authored
Dec 14, 2018
by
[zhangzhiwei]
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
升级头条采集核心包
parent
4f73053a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
pom.xml
+7
-1
src/test/java/com/zhiwei/wechat/example/WechatSearchExample.java
+6
-2
No files found.
pom.xml
View file @
ed90a468
...
@@ -85,7 +85,12 @@
...
@@ -85,7 +85,12 @@
<dependency>
<dependency>
<groupId>
com.zhiwei.tools
</groupId>
<groupId>
com.zhiwei.tools
</groupId>
<artifactId>
zhiwei-tools
</artifactId>
<artifactId>
zhiwei-tools
</artifactId>
<version>
0.0.9-SNAPSHOT
</version>
<version>
0.1.1-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.zhiwei.crawler
</groupId>
<artifactId>
crawler-core
</artifactId>
<version>
0.1.1-RELEASE
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
\ No newline at end of file
src/test/java/com/zhiwei/wechat/example/WechatSearchExample.java
View file @
ed90a468
...
@@ -35,12 +35,16 @@ public class WechatSearchExample{
...
@@ -35,12 +35,16 @@ public class WechatSearchExample{
public
static
void
wechatSearchExample
()
throws
UnknownHostException
public
static
void
wechatSearchExample
()
throws
UnknownHostException
{
{
List
<
String
>
wordList
=
new
ArrayList
<
String
>();
List
<
String
>
wordList
=
new
ArrayList
<
String
>();
wordList
.
add
(
"
马化腾 知乎
"
);
wordList
.
add
(
"
QQ 涉密邮件 间谍
"
);
for
(
String
word
:
wordList
)
for
(
String
word
:
wordList
)
{
{
try
{
try
{
List
<
WechatAricle
>
list
=
WechatAritcleSearch
.
wechatKeywordSearch
(
word
,
5
,
"2018-10-25"
,
"2018-10-25"
,
null
,
null
,
null
);
List
<
WechatAricle
>
list
=
WechatAritcleSearch
.
wechatKeywordSearch
(
word
,
5
,
"2018-11-29"
,
"2018-11-29"
,
null
,
null
);
System
.
out
.
println
(
"======"
+
list
.
size
());
for
(
WechatAricle
wechat
:
list
){
System
.
out
.
println
(
wechat
.
getTitle
());
}
}
catch
(
UnsupportedEncodingException
e
)
{
}
catch
(
UnsupportedEncodingException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
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