Bladeren bron

finished commit

Joshua Chung 6 jaren geleden
bovenliggende
commit
38e88947fd
5 gewijzigde bestanden met toevoegingen van 26 en 1 verwijderingen
  1. 15
    0
      .idea/Main/Fido.java
  2. 3
    0
      .idea/ZCW-Fido-URLFetch.iml
  3. 1
    0
      .idea/misc.xml
  4. 7
    1
      pom.xml
  5. BIN
      target/classes/Fido.class

+ 15
- 0
.idea/Main/Fido.java Bestand weergeven

@@ -0,0 +1,15 @@
1
+import org.jsoup.Jsoup;
2
+import org.jsoup.nodes.Document;
3
+import java.io.IOException;
4
+import java.util.Scanner;
5
+
6
+
7
+public class Fido {
8
+
9
+    public static void main (String[] args) throws IOException {
10
+
11
+        System.out.println("Enter a URL: \n");
12
+        Document doc = Jsoup.connect(new Scanner(System.in).nextLine()).get();
13
+        System.out.println(doc);
14
+    }
15
+}

+ 3
- 0
.idea/ZCW-Fido-URLFetch.iml Bestand weergeven

@@ -7,9 +7,12 @@
7 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8 8
       <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9 9
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <sourceFolder url="file://$MODULE_DIR$/.idea/libraries/Main" isTestSource="false" />
11
+      <sourceFolder url="file://$MODULE_DIR$/.idea/Main" isTestSource="false" />
10 12
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 13
     </content>
12 14
     <orderEntry type="inheritedJdk" />
13 15
     <orderEntry type="sourceFolder" forTests="false" />
16
+    <orderEntry type="library" name="Maven: org.jsoup:jsoup:1.11.3" level="project" />
14 17
   </component>
15 18
 </module>

+ 1
- 0
.idea/misc.xml Bestand weergeven

@@ -7,4 +7,5 @@
7 7
       </list>
8 8
     </option>
9 9
   </component>
10
+  <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
10 11
 </project>

+ 7
- 1
pom.xml Bestand weergeven

@@ -8,5 +8,11 @@
8 8
     <artifactId>ZCW-Fido-URLFetch</artifactId>
9 9
     <version>1.0-SNAPSHOT</version>
10 10
 
11
-    
11
+    <dependencies>
12
+        <dependency>
13
+            <groupId>org.jsoup</groupId>
14
+            <artifactId>jsoup</artifactId>
15
+            <version>1.11.3</version>
16
+        </dependency>
17
+    </dependencies>
12 18
 </project>

BIN
target/classes/Fido.class Bestand weergeven