mirror of https://github.com/bvn13/imdb-spider.git
fixed build
parent
2af5a129d8
commit
4e97bdaf9e
|
@ -1,5 +1,5 @@
|
|||
module imdb.spider.core {
|
||||
//exports ru.bvn13.imdbspider;
|
||||
exports ru.bvn13.imdbspider;
|
||||
exports ru.bvn13.imdbspider.imdb;
|
||||
exports ru.bvn13.imdbspider.spider.tasker;
|
||||
exports ru.bvn13.imdbspider.exceptions;
|
||||
|
|
|
@ -217,4 +217,8 @@ public class ApiFactory_1_0 implements ApiFactory {
|
|||
TaglineProcessor_1_0 getTaglineProcessor() {
|
||||
return taglineProcessor;
|
||||
}
|
||||
|
||||
TaglineListProcessor_1_0 getTaglineListProcessor() {
|
||||
return taglineListProcessor;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -174,7 +174,7 @@ public class MovieProcessor_1_0 extends AbstractApiProcessor_1_0 {
|
|||
if (task.getCssSelectorResult().size() > 0) {
|
||||
Elements links = task.getCssSelectorResult().first().parent().select("span > a:contains(See more)");
|
||||
if (links.size() > 0) {
|
||||
Task newTask = getApiFactory().taskByTaglineListDataType(TaglineListDataType.ELEMENTS)
|
||||
Task newTask = getApiFactory().getTaglineListProcessor().taskByTaglineListDataType(TaglineListDataType.ELEMENTS)
|
||||
.setParentTask(task)
|
||||
.setUrl(String.format("%s%s", ApiFactory_1_0.URL_MAIN, links.first().attr("href")));
|
||||
task.getNestedTasks().add(newTask);
|
||||
|
|
40
pom.xml
40
pom.xml
|
@ -40,6 +40,17 @@
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.javassist</groupId>
|
||||
<artifactId>javassist</artifactId>
|
||||
<version>3.23.1-GA</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cglib</groupId>
|
||||
<artifactId>cglib-nodep</artifactId>
|
||||
<version>3.2.7</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -61,24 +72,25 @@
|
|||
<configuration>
|
||||
<release>${java.version}</release>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.1</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>6.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<argLine>
|
||||
--illegal-access=permit
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-failsafe-plugin</artifactId>
|
||||
<version>2.22.0</version>
|
||||
<configuration>
|
||||
<argLine>
|
||||
--illegal-access=permit
|
||||
</argLine>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
|
|
Loading…
Reference in New Issue