Skip to content

geoste20/java-web-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Phase2 Downloader

A Java application that downloads files from a list of URLs and records metadata about each URL.

Overview

This program reads URLs from an input file, retrieves information about each URL, and downloads supported files to a specified directory. It also generates an output report containing metadata and download results.

Features

  • Reads URLs from an input file
  • Retrieves URL metadata
  • Downloads text-based files (HTML, TXT)
  • Downloads binary files (JPG, JPEG, GIF, PDF, DOCX)
  • Saves downloaded files to a specified directory
  • Generates a detailed output report
  • Handles invalid URLs and download errors

Requirements

  • Java 8 or higher

Compilation

javac Phase2Downloader.java

Usage

java Phase2Downloader -i input.txt -o output.txt -d downloads

Example

java Phase2Downloader -i urls.txt -o report.txt -d downloaded_files

Academic Context

This project was completed for CSCI 370 at Queens College as a programming assignment focused on:

  • Java networking with URL and URLConnection
  • File input/output operations
  • Command-line argument processing
  • Downloading web resources
  • Handling text and binary files
  • Exception handling and reporting

Technologies Used

  • Java
  • URLConnection API
  • BufferedReader / BufferedWriter
  • FileInputStream / FileOutputStream

Author

Giorgos Stephanis

Queens College – CSCI 370

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages