Merge pull request #611 from cyian-1756/urlComments
Can now include comments in url files
This commit is contained in:
commit
b85e98536a
@ -221,8 +221,12 @@ public class App {
|
|||||||
String url;
|
String url;
|
||||||
BufferedReader br = new BufferedReader(new FileReader(filename));
|
BufferedReader br = new BufferedReader(new FileReader(filename));
|
||||||
while ((url = br.readLine()) != null) {
|
while ((url = br.readLine()) != null) {
|
||||||
// loop through each url in the file and proces each url individually.
|
if (url.startsWith("//") || url.startsWith("#")) {
|
||||||
ripURL(url.trim(), cl.hasOption("n"));
|
logger.debug("Skipping over line \"" + url + "\"because it is a comment");
|
||||||
|
} else {
|
||||||
|
// loop through each url in the file and process each url individually.
|
||||||
|
ripURL(url.trim(), cl.hasOption("n"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException fne) {
|
} catch (FileNotFoundException fne) {
|
||||||
logger.error("[!] File containing list of URLs not found. Cannot continue.");
|
logger.error("[!] File containing list of URLs not found. Cannot continue.");
|
||||||
|
Loading…
Reference in New Issue
Block a user