Update Driver.java

This commit is contained in:
xixu-me committed 2024-07-02 16:00:23 +08:00
1 parent 3f62d5a75d
commit 2514f31489
1 file changed
+1
+1
View File
@@ -10,6 +10,7 @@ public class Driver {
public static void crawl() {
ExecutorService executor = Executors.newFixedThreadPool(5);
try {
System.out.println("Crawling started...");
for (int i = 1; i <= 5; i++) {
String url = URL_PREFIX + i;
executor.submit(new NewsThread(url));