Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webmagic
Project
Project
Details
Activity
Releases
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
沈俊林
webmagic
Commits
f45e2f11
Commit
f45e2f11
authored
Jan 21, 2017
by
yihua.huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for release
parent
d60615f5
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
13 deletions
+16
-13
pom.xml
pom.xml
+2
-2
pom.xml
webmagic-core/pom.xml
+1
-1
pom.xml
webmagic-extension/pom.xml
+1
-1
PhantomJSDownloader.java
...us/codecraft/webmagic/downloader/PhantomJSDownloader.java
+6
-3
SpiderMonitor.java
...ain/java/us/codecraft/webmagic/monitor/SpiderMonitor.java
+1
-1
DoubleKeyMap.java
...c/main/java/us/codecraft/webmagic/utils/DoubleKeyMap.java
+1
-1
pom.xml
webmagic-samples/pom.xml
+1
-1
pom.xml
webmagic-saxon/pom.xml
+1
-1
pom.xml
webmagic-scripts/pom.xml
+1
-1
pom.xml
webmagic-selenium/pom.xml
+1
-1
No files found.
pom.xml
View file @
f45e2f11
...
...
@@ -6,7 +6,7 @@
<version>
7
</version>
</parent>
<groupId>
us.codecraft
</groupId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
<modelVersion>
4.0.0
</modelVersion>
<packaging>
pom
</packaging>
<properties>
...
...
@@ -38,7 +38,7 @@
<connection>
scm:git:git@github.com:code4craft/webmagic.git
</connection>
<developerConnection>
scm:git:git@github.com:code4craft/webmagic.git
</developerConnection>
<url>
git@github.com:code4craft/webmagic.git
</url>
<tag>
webmagic-parent-0.6.
0
</tag>
<tag>
webmagic-parent-0.6.
1
</tag>
</scm>
<licenses>
<license>
...
...
webmagic-core/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<groupId>
us.codecraft
</groupId>
<artifactId>
webmagic-parent
</artifactId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
webmagic-extension/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<groupId>
us.codecraft
</groupId>
<artifactId>
webmagic-parent
</artifactId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
webmagic-extension/src/main/java/us/codecraft/webmagic/downloader/PhantomJSDownloader.java
View file @
f45e2f11
...
...
@@ -39,6 +39,7 @@ public class PhantomJSDownloader extends AbstractDownloader {
* /usr/local/bin/phantomjs 命令的绝对路径,避免因系统环境变量引起的IOException
*
* @param phantomJsCommand
* @return this
*/
public
PhantomJSDownloader
(
String
phantomJsCommand
)
{
this
.
initPhantomjsCrawlPath
();
...
...
@@ -47,7 +48,7 @@ public class PhantomJSDownloader extends AbstractDownloader {
/**
* 新增构造函数,支持crawl.js路径自定义,因为当其他项目依赖此jar包时,runtime.exec()执行phantomjs命令时无使用法jar包中的crawl.js
*
*
<pre>
* crawl.js start -->>
*
* var system = require('system');
...
...
@@ -69,13 +70,15 @@ public class PhantomJSDownloader extends AbstractDownloader {
* });
*
* <<-- crawl.js end
* </pre>
* 具体项目时可以将以上js代码复制下来使用
*
* example:
* new PhantomJSDownloader("/your/path/phantomjs", "/your/path/crawl.js");
*
* @param phantomJsCommand
* @param crawlJsPath
* @param phantomJsCommand phantomJsCommand
* @param crawlJsPath crawlJsPath
* @return this
*/
public
PhantomJSDownloader
(
String
phantomJsCommand
,
String
crawlJsPath
)
{
PhantomJSDownloader
.
phantomJsCommand
=
phantomJsCommand
;
...
...
webmagic-extension/src/main/java/us/codecraft/webmagic/monitor/SpiderMonitor.java
View file @
f45e2f11
...
...
@@ -45,7 +45,7 @@ public class SpiderMonitor {
*
* @param spiders spiders
* @return this
* @throws JMException
* @throws JMException
JMException
*/
public
synchronized
SpiderMonitor
register
(
Spider
...
spiders
)
throws
JMException
{
for
(
Spider
spider
:
spiders
)
{
...
...
webmagic-extension/src/main/java/us/codecraft/webmagic/utils/DoubleKeyMap.java
View file @
f45e2f11
...
...
@@ -102,7 +102,7 @@ public class DoubleKeyMap<K1, K2, V> extends MultiKeyMapBase {
/**
* @param key1 key1
* @return
* @return
map
*/
public
Map
<
K2
,
V
>
remove
(
K1
key1
)
{
Map
<
K2
,
V
>
remove
=
map
.
remove
(
key1
);
...
...
webmagic-samples/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<artifactId>
webmagic-parent
</artifactId>
<groupId>
us.codecraft
</groupId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
webmagic-saxon/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<artifactId>
webmagic-parent
</artifactId>
<groupId>
us.codecraft
</groupId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
webmagic-scripts/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<artifactId>
webmagic-parent
</artifactId>
<groupId>
us.codecraft
</groupId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
webmagic-selenium/pom.xml
View file @
f45e2f11
...
...
@@ -3,7 +3,7 @@
<parent>
<artifactId>
webmagic-parent
</artifactId>
<groupId>
us.codecraft
</groupId>
<version>
0.6.1
-SNAPSHOT
</version>
<version>
0.6.1
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
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