Skip to content

Instantly share code, notes, and snippets.

View CleverFool77's full-sized avatar
👋
Hi everyone

Lekhika Dugtal CleverFool77

👋
Hi everyone
View GitHub Profile
@palianytsia
palianytsia / Crawler.java
Created December 9, 2012 19:40
Demo of a simple web crawler, that fetches the content for a given start URL, extracts the links from the content, goes on to crawl the extracted links (back to step 1) and stops after 1000 found URLs.
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;