Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Link grabber lists a web page's links when given the page's address (fixes #705) (#865)

Ahmed Nefzaouied4372c53641
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 80f4a1cd..8d269928 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,6 +32,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- **Link grabber** lists a web page's links when you give it the page's address. Pasting `https://www.epa.gov/water-research/epanet` (or copying it for **Add batch download from clipboard**) showed only the page itself: Link grabber took every address for a file to download and only looked each one up, so a page stayed one link. Now an address that came on its own and turns out to be a web page is read, and the links on it join as that page's package, as the browser's **Download all links** brings them: the page's `<a>` links and its videos and sounds, relative ones read against the page's address or its `<base>`, each once, without what sits in its scripts, styles and comments. The page itself is left unticked, and **Hide web pages** now also hides a link whose look-up found a page, whatever its address ends in. Links found on a page aren't read in turn, and with **Look links up when they arrive** off nothing is read ([#705](https://github.com/anefzaoui/misterdownloadmanager/issues/705)).
- Windows: **Open with...**, in a finished download's right-click menu and in **Download complete**, shows Windows' own **Select an app to open this file** again. It showed nothing when the file's name or folder had a space in it: MDM handed the file to Windows' old `OpenAs_RunDLL` command, which takes everything after it for the file's name, the quotes round a name with spaces included, and found no such file. MDM now asks Windows for the chooser itself, as Explorer's **Open with → Choose another app** does, beside the window, and a file moved or deleted since then says so, as **Open** does ([#720](https://github.com/anefzaoui/misterdownloadmanager/issues/720)).
- A file host that answers with its own web page (DropMeFiles, dailyuploads, datavaults: a page that counts down, asks you to solve a captcha or to press a button before the file) no longer leaves a "corrupted" archive of a few kilobytes marked as finished. MDM saved that page under the archive's name whenever the site sent it as the file's own type, under the file's name, or without a type, and the download looked complete. Now the download stops before anything is saved and says the site sent a web page instead of the file: open the link in your browser, finish there, and the download comes back to MDM (through MDM's browser extension). The progress window's **Open in browser** opens it. MDM tells the page by its first bytes as well as by its type, wherever an archive, a program, a disk image, a PDF, a picture, audio or video was expected (from its name, the browser's type for it, or the size the browser announced), and a download resumed onto such a page stops the same way, its data on disk kept as it was. A page you download on purpose (`.html`, a page's link) is saved as before, and so is a report "exported to Excel" as a page under an `.xls` name. A link the browser handed over that now gives the page is also asked once where the browser's own download ended, as one the site refuses is ([#701](https://github.com/anefzaoui/misterdownloadmanager/issues/701), [#692](https://github.com/anefzaoui/misterdownloadmanager/issues/692)).
- A YouTube video that lists only **Audio only** (and maybe one low quality) now says why: yt-dlp needs a JavaScript runtime (Deno, Node.js or Bun) to solve YouTube's challenges, and without one it finds only part of the video's qualities. The Download video window, the menu over a video and the command line now say **YouTube needs a JavaScript runtime to list its video qualities: install Node.js or Deno, then look it up again**, with a link to the [help page's section](docs/video.md#javascript-runtime) that gives the command for Windows, Ubuntu and Debian, Fedora, Arch and macOS. MDM notices a runtime installed while it runs at the next look-up, and also finds Deno from its own installer (`~/.deno/bin`) and, on Windows, Deno or Node.js just installed with winget or Node.js's installer ([#852](https://github.com/anefzaoui/misterdownloadmanager/issues/852)).
diff --git a/ROADMAP.md b/ROADMAP.md
index fa1afa8b..6bb954d0 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -557,6 +557,9 @@ Bug fixes from the first days of 0.5.0, a Safari extension, and more file types.
These ship in the next version.
+- ✅ Link grabber lists a web page's links when given the page's address (pasted, copied, in
+ a list), as the browser's "Download all links" does, instead of only the page itself
+ ([#705](https://github.com/anefzaoui/misterdownloadmanager/issues/705))
- ✅ Windows: **Open with...** shows Windows' "Select an app to open this file" again, for
files whose name or folder has a space too
([#720](https://github.com/anefzaoui/misterdownloadmanager/issues/720))
diff --git a/crates/app/src/app.rs b/crates/app/src/app.rs
index 01cf3c18..8ab001ff 100644
--- a/crates/app/src/app.rs
+++ b/crates/app/src/app.rs
@@ -9330,11 +9330,22 @@ impl App {
}
/// Link grabber's look-ups (Options → Archives → "Check links"): the next links, each
- /// with its own request (the page's referer and cookies), on the runtime.
+ /// with its own request (the page's referer and cookies), on the runtime. Then the web pages
+ /// given on their own that the look-ups found, each read for its links (#705), which join.
fn grabber_checks(&mut self, ctx: &egui::Context) {
+ let read = self
+ .grabber
+ .as_mut()
+ .map(|g| g.pages_read())
+ .unwrap_or_default();
+ for found in read {
+ // The same rule as every link added: one in the download list comes unticked.
+ self.show_import(found, String::new());
+ }
if !self.settings.grabber_check {
return;
}
+ self.grabber_reads(ctx);
let Some(g) = &self.grabber else { return };
for (i, url, d) in g.to_check() {
let context = ipc::Command {
@@ -9359,6 +9370,51 @@ impl App {
}
}
+ /// Link grabber's web pages to read for their links (#705), each with its own request, on
+ /// the runtime: the page's links come back with the page as their referer (the package is
+ /// named after it), the agent and private mark the page had. Not the page's cookies, which
+ /// are its own site's.
+ fn grabber_reads(&mut self, ctx: &egui::Context) {
+ let Some(g) = &self.grabber else { return };
+ for (i, url, d) in g.to_read() {
+ let context = ipc::Command {
+ referer: d.referer.clone(),
+ cookies: d.cookies.clone(),
+ user_agent: d.user_agent.clone(),
+ ..Default::default()
+ };
+ let parts = self.request_parts(&url, None, &context, false);
+ let slot: std::sync::Arc<std::sync::Mutex<Option<_>>> = Default::default();
+ let (out, ctx) = (slot.clone(), ctx.clone());
+ self.rt.spawn(async move {
+ let found = match mdm_engine::page_links(url, parts.headers, &parts.opts).await {
+ Ok((at, links)) => {
+ tracing::info!("link grabber: {} links on a page", links.len());
+ links
+ .into_iter()
+ .map(|u| crate::transfer::Imported {
+ url: u.into(),
+ referer: Some(at.to_string()),
+ user_agent: d.user_agent.clone(),
+ private: d.private,
+ ..Default::default()
+ })
+ .collect()
+ }
+ Err(e) => {
+ tracing::info!("link grabber: a page couldn't be read: {e}");
+ Vec::new()
+ }
+ };
+ *out.lock().unwrap() = Some(found);
+ ctx.request_repaint();
+ });
+ if let Some(g) = &mut self.grabber {
+ g.reading(i, slot);
+ }
+ }
+ }
+
/// Can this download be fetched again from the start? A file download that isn't running
/// (torrents re-check their data instead; a video's file is yt-dlp's to replace).
fn can_redownload(&self, id: u64) -> bool {
diff --git a/crates/app/src/dialogs.rs b/crates/app/src/dialogs.rs
index a5b6d64a..71134e7a 100644
--- a/crates/app/src/dialogs.rs
+++ b/crates/app/src/dialogs.rs
@@ -1107,6 +1107,7 @@ impl FileInfo {
file_name,
// The browser had the answer: nothing was asked of the server here.
server: None,
+ web_page: false,
})),
),
None => (start_probe(rt, ctx, &new.url, &request), None),
diff --git a/crates/app/src/grabber.rs b/crates/app/src/grabber.rs
index cbbe27f7..702279d1 100644
--- a/crates/app/src/grabber.rs
+++ b/crates/app/src/grabber.rs
@@ -1,6 +1,7 @@
//! Link grabber (#37): the links of a page (the browser's "Download all links"), of a list file
//! (Tasks → Import), copied (Tasks → Add batch download from clipboard, #709), dropped or
-//! pasted, gathered into packages to tick before they are added.
+//! pasted, gathered into packages to tick before they are added. An address that came on its own
+//! and turns out to be a web page is read for its links, which join as that page's (#705).
//! It grew out of the Import window and keeps its ways (IDM's "Download all links": every link
//! looked up for its name and size, Check all / Uncheck all, "Hide web pages", OK adds the
//! ticked ones to the queue); the packages come from JDownloader's link grabber: a split
@@ -24,6 +25,8 @@ const BUTTONS_Y: f32 = 446.0;
/// Links looked up at once, and at once from one host.
const CHECKS: usize = 8;
const CHECKS_PER_HOST: usize = 4;
+/// Web pages read for their links at once.
+const READS: usize = 2;
crate::theme::themed! {
// The lists' header colour (winui::LIST_HEADER), as Add torrent's file list.
@@ -137,9 +140,28 @@ pub struct Link {
/// A magnet link (#709): a torrent, added once its files are known; never looked up here.
magnet: bool,
check: Option<Check>,
+ /// Its look-up found a web page (`ProbeInfo::web_page`).
+ page: bool,
+ /// Reading it for its links (#705): asked (`Some`), and its answer once it came.
+ read: Option<Read>,
}
impl Link {
+ /// A web page, as its look-up found or its name says (IDM's "Hide HTML files").
+ fn is_page(&self) -> bool {
+ self.page || web_page(&self.name)
+ }
+
+ /// A web page given on its own (pasted, copied, typed, in a list), not found on a page: one
+ /// to read for its links (#705). A page's own links aren't read in turn.
+ fn to_read(&self) -> bool {
+ self.page
+ && self.state == LinkState::Online
+ && self.found.referer.is_none()
+ && self.read.is_none()
+ && !self.known
+ }
+
/// Its files' category: a torrent's are Torrents, whatever its name says.
fn category(&self) -> Category {
if self.magnet {
@@ -161,6 +183,9 @@ fn magnet_name(url: &Url) -> String {
}
type Check = Arc<Mutex<Option<Result<mdm_engine::ProbeInfo, LinkState>>>>;
+/// A page's links as they were read (`None` until then; empty when it had none or couldn't be
+/// read).
+type Read = Arc<Mutex<Option<Vec<Imported>>>>;
/// A package's ticked links, as the window hands them over.
pub struct Picked {
@@ -258,6 +283,8 @@ impl Grabber {
known,
magnet,
check: None,
+ page: false,
+ read: None,
});
if !settle.contains(&pkg) {
settle.push(pkg);
@@ -361,7 +388,7 @@ impl Grabber {
/// Shown (not a hidden web page)?
fn shows(&self, l: &Link) -> bool {
- !(self.hide_pages && web_page(&l.name))
+ !(self.hide_pages && l.is_page())
}
fn visible_rows(&self) -> Vec<Row> {
@@ -423,6 +450,46 @@ impl Grabber {
}
}
+ /// Web pages to read for their links now (#705), at most `READS` at once: the caller reads
+ /// each ([`Grabber::reading`]) with the page's request.
+ pub fn to_read(&self) -> Vec<(usize, Url, Imported)> {
+ let busy = self
+ .links
+ .iter()
+ .filter(|l| l.read.as_ref().is_some_and(|r| r.lock().unwrap().is_none()))
+ .count();
+ self.links
+ .iter()
+ .enumerate()
+ .filter(|(_, l)| l.to_read())
+ .take(READS.saturating_sub(busy))
+ .map(|(i, l)| (i, l.url.clone(), l.found.clone()))
+ .collect()
+ }
+
+ /// Page `i` is being read; its links come in `slot`.
+ pub fn reading(&mut self, i: usize, slot: Read) {
+ if let Some(l) = self.links.get_mut(i) {
+ l.read = Some(slot);
+ }
+ }
+
+ /// The links of the pages read since the last call, each page's as one list. A page that
+ /// had links is unticked: its links were what was wanted, not the page.
+ pub fn pages_read(&mut self) -> Vec<Vec<Imported>> {
+ let mut out = Vec::new();
+ for l in &mut self.links {
+ let Some(found) = l.read.as_ref().and_then(|r| r.lock().unwrap().take()) else {
+ continue;
+ };
+ if !found.is_empty() {
+ l.on = false;
+ out.push(found);
+ }
+ }
+ out
+ }
+
/// Answers that came: the server's name and size, or why the link is no good.
fn take_answers(&mut self) {
let mut moved = Vec::new();
@@ -435,6 +502,7 @@ impl Grabber {
match answer {
Ok(info) => {
l.state = LinkState::Online;
+ l.page = info.web_page;
l.size = info.size;
let named = mdm_engine::naming::sanitize(&info.file_name);
if !named.is_empty() && named != l.name {
@@ -467,7 +535,7 @@ impl Grabber {
let to = on < n;
let hide = self.hide_pages;
for l in self.links.iter_mut().filter(|l| l.pkg == k) {
- if !(hide && web_page(&l.name)) {
+ if !(hide && l.is_page()) {
l.on = to;
}
}
@@ -587,7 +655,7 @@ impl Grabber {
if picks[0].clicked() {
let hide = self.hide_pages;
for l in &mut self.links {
- l.on = !(hide && web_page(&l.name));
+ l.on = !(hide && l.is_page());
}
}
if picks[1].clicked() {
@@ -1257,6 +1325,81 @@ mod tests {
assert!(a.same(&c));
}
+ #[test]
+ fn a_page_given_on_its_own_is_read_for_its_links() {
+ let mut g = grabber();
+ let page = "https://example.com/water/epanet";
+ let found_on = "https://example.com/files/setup.exe";
+ g.add(
+ vec![
+ link(page, None),
+ link(found_on, Some("https://example.com/other")),
+ ],
+ "Pasted".into(),
+ |_| false,
+ );
+ assert!(
+ g.to_read().is_empty(),
+ "nothing is read before it is looked up"
+ );
+ // The look-ups: the address is a web page, and so is the link found on a page.
+ for (i, url, _) in g.to_check() {
+ let slot: Check = Default::default();
+ *slot.lock().unwrap() = Some(Ok(mdm_engine::ProbeInfo {
+ final_url: url.clone(),
+ size: None,
+ file_name: "epanet.html".into(),
+ server: None,
+ web_page: true,
+ }));
+ g.checking(i, slot);
+ }
+ g.take_answers();
+ // Hidden as a web page, though its address doesn't end in one.
+ assert!(g.links.iter().all(|l| !g.shows(l)));
+ // Only the page given on its own is read, once.
+ let reads = g.to_read();
+ assert_eq!(reads.len(), 1);
+ assert_eq!(reads[0].1.as_str(), page);
+ let slot: Read = Default::default();
+ g.reading(reads[0].0, slot.clone());
+ assert!(g.to_read().is_empty());
+ assert!(g.pages_read().is_empty(), "nothing came yet");
+ let on_page = |u: &str| Imported {
+ url: u.into(),
+ referer: Some(page.into()),
+ ..Default::default()
+ };
+ *slot.lock().unwrap() = Some(vec![
+ on_page("https://dl.example.org/epanet2.2_setup.exe"),
+ on_page("https://dl.example.org/epanet2.2.zip"),
+ ]);
+ let read = g.pages_read();
+ assert_eq!(read.len(), 1);
+ g.add(read.into_iter().flatten().collect(), String::new(), |_| {
+ false
+ });
+ assert!(g.pages_read().is_empty() && g.to_read().is_empty());
+ // The page's links, as one package named after the page; the page itself unticked.
+ let shown: Vec<&str> = g
+ .links
+ .iter()
+ .filter(|l| g.shows(l))
+ .map(|l| l.name.as_str())
+ .collect();
+ assert_eq!(shown, ["epanet2.2_setup.exe", "epanet2.2.zip"]);
+ let page_link = g.links.iter().find(|l| l.url.as_str() == page).unwrap();
+ assert!(!page_link.on);
+ let pkg = g
+ .links
+ .iter()
+ .find(|l| l.name == "epanet2.2.zip")
+ .unwrap()
+ .pkg;
+ assert!(g.links.iter().filter(|l| l.pkg == pkg).count() == 2);
+ assert!(g.source.contains("Pasted"));
+ }
+
#[test]
fn web_pages_hide_and_stay_out() {
let mut g = grabber();
diff --git a/crates/engine/src/download.rs b/crates/engine/src/download.rs
index 1709f575..5ddc28f1 100644
--- a/crates/engine/src/download.rs
+++ b/crates/engine/src/download.rs
@@ -812,6 +812,9 @@ pub struct ProbeInfo {
pub file_name: String,
/// Where the server is, as the look saw it (#140).
pub server: Option<crate::Server>,
+ /// The answer was a web page (HTML the server didn't name as a file of its own): Link
+ /// grabber reads an address given on its own for its links ([`page_links`], #705).
+ pub web_page: bool,
}
/// One plain `GET` (or `Options::post`'s POST) to learn the final URL, size and name, through
@@ -873,6 +876,7 @@ pub async fn probe_kept(
final_url: url,
size: facts.size,
server: None,
+ web_page: false,
},
None,
));
@@ -978,6 +982,7 @@ pub async fn probe_kept(
size: size.or(unlocked.as_ref().and_then(|u| u.size)),
file_name,
server: seen.get(),
+ web_page: is_web_page(&head.headers) && !named(&head.headers),
};
let kept = from_zero.then(|| KeptAnswer {
url,
@@ -3129,6 +3134,41 @@ async fn read_up_to(
Ok(body)
}
+/// The most of a web page [`page_links`] reads.
+const PAGE_LINKS_MAX: usize = 8 << 20;
+
+/// The links on the web page at `url`, for Link grabber (#705): an address given on its own
+/// (pasted, copied, in a list) that is a page lists the page's links, as the browser's
+/// "Download all links" does. Asked as a download's look asks (`get`: the user's proxy and
+/// agent, the redirects and waiting pages it follows), read up to `PAGE_LINKS_MAX`, and its
+/// links found by [`html::links`] against the address the page came from, which comes back
+/// too. An answer that isn't a web page has no links (its body isn't read).
+pub async fn page_links(
+ url: Url,
+ headers: HeaderMap,
+ opts: &Options,
+) -> Result<(Url, Vec<Url>), Error> {
+ let cancel = CancellationToken::new();
+ let client = http_client(opts, &url)?;
+ let (resp, _, _) = get(
+ &client,
+ url,
+ headers,
+ None,
+ opts.site_agent(),
+ false,
+ &cancel,
+ )
+ .await?;
+ let at = resp.url().clone();
+ if !is_web_page(resp.headers()) {
+ return Ok((at, Vec::new()));
+ }
+ let page = read_up_to(resp, PAGE_LINKS_MAX, &cancel).await?;
+ let links = html::links(&String::from_utf8_lossy(&page), &at);
+ Ok((at, links))
+}
+
/// Where a page leads on to and after how long, from its `Refresh` value or a meta refresh's
/// `content` (`5; url=next.html`, `0;URL='https://…'`, `3, https://…`), relative to `base`.
/// None unless it leads to another http(s) address: a page that only reloads itself is the
diff --git a/crates/engine/src/html.rs b/crates/engine/src/html.rs
index 59422f26..d7f6d7b7 100644
--- a/crates/engine/src/html.rs
+++ b/crates/engine/src/html.rs
@@ -1,6 +1,11 @@
//! The little of HTML the engine reads: a waiting page's `<meta http-equiv="refresh">`
-//! (`download::meta_refresh`) and a site's own download page (`sites`). Tags, their attributes
-//! and an element's text, as browsers read well-formed pages; not a parser.
+//! (`download::meta_refresh`), a site's own download page (`sites`) and a page's links for Link
+//! grabber (`links`, #705). Tags, their attributes and an element's text, as browsers read
+//! well-formed pages; not a parser.
+
+use std::collections::HashSet;
+
+use url::Url;
/// Each `<name …>` tag in `page` (the name in any case, as a whole word), from `<` to its `>`
/// (or the end), with its byte offset.
@@ -155,6 +160,99 @@ pub(crate) fn text_of_class(page: &str, class: &str) -> Option<String> {
None
}
+/// Every link on the web page `page` (#705), as a browser lists a page's links and media for
+/// "Download all links": each `<a href>` and `<area href>`, and each `<video src>`, `<audio src>`
+/// and `<source src>`, in the page's order. Each is read as the browser reads it: references
+/// decoded, against the page's `<base href>` or else `at` (the address the page came from),
+/// without its `#fragment`, and once. Only what can be downloaded: http(s), ftp(s) and magnet
+/// links (not `mailto:`, `javascript:`, `data:`). Comments, scripts and styles aren't markup:
+/// an address in them isn't a link.
+pub fn links(page: &str, at: &Url) -> Vec<Url> {
+ let page = markup(page);
+ let base = tags(&page, "base")
+ .find_map(|(_, t)| attribute(t, "href"))
+ .and_then(|h| at.join(decode(&h).trim()).ok())
+ .unwrap_or_else(|| at.clone());
+ let mut found: Vec<(usize, String)> = Vec::new();
+ for (name, attr) in [
+ ("a", "href"),
+ ("area", "href"),
+ ("video", "src"),
+ ("audio", "src"),
+ ("source", "src"),
+ ] {
+ found.extend(tags(&page, name).filter_map(|(i, t)| attribute(t, attr).map(|v| (i, v))));
+ }
+ found.sort_by_key(|(i, _)| *i);
+ let mut seen = HashSet::new();
+ found
+ .into_iter()
+ .filter_map(|(_, value)| {
+ let mut url = base.join(decode(&value).trim()).ok()?;
+ if !(crate::supported(&url) || url.scheme() == "magnet") {
+ return None;
+ }
+ url.set_fragment(None);
+ seen.insert(url.clone()).then_some(url)
+ })
+ .collect()
+}
+
+/// `page` without what isn't markup: its comments, and the insides of its `<script>` and
+/// `<style>` elements (their tags too: a script's `src` isn't a link).
+fn markup(page: &str) -> String {
+ const SKIPPED: [(&str, &str); 3] = [
+ ("<!--", "-->"),
+ ("<script", "</script"),
+ ("<style", "</style"),
+ ];
+ // ASCII lowercasing keeps every byte offset.
+ let lower = page.to_ascii_lowercase();
+ let mut out = String::with_capacity(page.len());
+ let mut at = 0;
+ loop {
+ let next = SKIPPED
+ .iter()
+ .filter_map(|&(open, close)| opening(&lower, at, open).map(|i| (i, open, close)))
+ .min_by_key(|&(i, ..)| i);
+ let Some((start, open, close)) = next else {
+ break;
+ };
+ out.push_str(&page[at..start]);
+ let inside = start + open.len();
+ at = match lower[inside..].find(close) {
+ // A comment ends at its `-->`; an element past its closing tag's `>`.
+ Some(e) if close == "-->" => inside + e + close.len(),
+ Some(e) => {
+ let end = inside + e + close.len();
+ lower[end..].find('>').map_or(lower.len(), |g| end + g + 1)
+ }
+ None => lower.len(),
+ };
+ }
+ out.push_str(&page[at..]);
+ out
+}
+
+/// Where `open` (`<!--`, or a tag's `<name` as a whole name) is next in `lower` from `at`.
+fn opening(lower: &str, at: usize, open: &str) -> Option<usize> {
+ let mut from = at;
+ while let Some(i) = lower[from..].find(open) {
+ let start = from + i;
+ let after = start + open.len();
+ let whole = open == "<!--"
+ || lower[after..]
+ .chars()
+ .next()
+ .is_none_or(|c| c.is_ascii_whitespace() || c == '>' || c == '/');
+ if whole {
+ return Some(start);
+ }
+ from = after;
+ }
+ None
+}
+
/// `html` without its tags (`<a href=…>name</a>` → `name`).
fn strip_tags(html: &str) -> String {
let mut out = String::with_capacity(html.len());
@@ -228,4 +326,93 @@ mod tests {
assert_eq!(text_of_class(page, "uc-error"), None);
assert_eq!(text_of_class("<p class=e> </p>", "e"), None);
}
+
+ fn found(page: &str, at: &str) -> Vec<String> {
+ links(page, &Url::parse(at).unwrap())
+ .into_iter()
+ .map(String::from)
+ .collect()
+ }
+
+ #[test]
+ fn a_pages_links_as_the_browser_reads_them() {
+ let page = r##"<html><body>
+ <A HREF="setup.exe">Setup</A>
+ <a class=x href='/files/manual.pdf#page=2'>Manual</a>
+ <a href=../up.zip>Up</a>
+ <a href="https://cdn.example.net/a.zip?x=1&amp;y=2">CDN</a>
+ <a href="setup.exe">again</a>
+ <a href="#top">top</a> <a name="anchor">no href</a> <abbr href="x.bin">not a link</abbr>
+ <a href="mailto:[email protected]">mail</a> <a href="javascript:void(0)">js</a>
+ <a href=" ftp://ftp.example.org/pub/f.tar.gz ">ftp</a>
+ <a href="magnet:?xt=urn:btih:abc&amp;dn=x">magnet</a>
+ <map><area shape=rect href="map.zip"></map>
+ <video src="clip.mp4"><source src="clip.webm"></video><audio src="/a.mp3"></audio>
+ </body></html>"##;
+ assert_eq!(
+ found(page, "https://example.com/dir/page.html"),
+ [
+ "https://example.com/dir/setup.exe",
+ "https://example.com/files/manual.pdf",
+ "https://example.com/up.zip",
+ "https://cdn.example.net/a.zip?x=1&y=2",
+ "https://example.com/dir/page.html",
+ "ftp://ftp.example.org/pub/f.tar.gz",
+ "magnet:?xt=urn:btih:abc&dn=x",
+ "https://example.com/dir/map.zip",
+ "https://example.com/dir/clip.mp4",
+ "https://example.com/dir/clip.webm",
+ "https://example.com/a.mp3",
+ ]
+ );
+ }
+
+ #[test]
+ fn links_follow_the_pages_base() {
+ let page = r#"<head><base href="https://files.example.org/v2/"></head><a href="x.zip">"#;
+ assert_eq!(
+ found(page, "https://example.com/"),
+ ["https://files.example.org/v2/x.zip"]
+ );
+ }
+
+ #[test]
+ fn comments_scripts_and_styles_hold_no_links() {
+ let page = r#"<!-- <a href="old.zip"> --><script src="/app.js">
+ document.write('<a href="w.zip">'); if (a<b) {}</script>
+ <style>a[href="s.zip"] { color: red }</style><SCRIPT>"<a href='x.zip'>"</SCRIPT>
+ <scripts><a href="kept.zip"></a>"#;
+ assert_eq!(
+ found(page, "https://example.com/"),
+ ["https://example.com/kept.zip"]
+ );
+ // Never closed: nothing after it is read.
+ assert!(found("<!-- <a href=a.zip>", "https://example.com/").is_empty());
+ }
+
+ /// #705: EPA's EPANET page (saved 2026-11-12) lists its installers and archives as plain
+ /// links among the site's own pages; Link grabber showed only the page itself.
+ #[test]
+ fn the_epanet_page_lists_its_downloads() {
+ let page = include_str!("../tests/data/epanet.html");
+ let all = found(page, "https://www.epa.gov/water-research/epanet");
+ for download in [
+ "https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2_setup.exe",
+ "https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2.zip",
+ "https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2_toolkit.zip",
+ "https://github.com/USEPA/EPANET2.2/archive/2.2.0.zip",
+ "https://www.epa.gov/sites/default/files/2018-10/en2setup2.00.12.01.exe",
+ "https://www.epa.gov/sites/default/files/2014-06/en2toolkit.zip",
+ "https://www.epa.gov/sites/default/files/2018-10/en2source.zip",
+ ] {
+ assert!(all.iter().any(|u| u == download), "{download} not found");
+ }
+ // The site's own pages, relative there, come whole; each link once.
+ assert!(
+ all.iter()
+ .any(|u| u == "https://www.epa.gov/environmental-topics")
+ );
+ let unique: HashSet<_> = all.iter().collect();
+ assert_eq!(unique.len(), all.len());
+ }
}
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index c8d0ac67..ae55d335 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -26,8 +26,8 @@ pub mod verify;
pub use dns::{Dns, DnsChoice, DnsError};
pub use download::{
Destination, Download, Error, Event, FileHook, KeptAnswer, NetKind, Options, Outcome,
- ProbeInfo, Proxy, Request, Snapshot, fetch, hop_client, http_client, probe, probe_kept,
- supported,
+ ProbeInfo, Proxy, Request, Snapshot, fetch, hop_client, http_client, page_links, probe,
+ probe_kept, supported,
};
pub use net::{NetError, Route};
pub use server::Server;
diff --git a/crates/engine/tests/data/epanet.html b/crates/engine/tests/data/epanet.html
new file mode 100644
index 00000000..0fb690a8
--- /dev/null
+++ b/crates/engine/tests/data/epanet.html
@@ -0,0 +1,930 @@
+
+
+
+<!DOCTYPE html>
+<html lang="en" dir="ltr" prefix="og: https://ogp.me/ns#" class="no-js">
+ <head>
+ <meta charset="utf-8" />
+<meta name="description" content="Software that models the hydraulic and water quality behavior of water distribution piping systems." />
+<link rel="canonical" href="https://www.epa.gov/water-research/epanet" />
+<link rel="shortlink" href="https://www.epa.gov/node/55761" />
+<meta property="DC.title" content="EPANET" />
+<meta property="DC.description" content="Software that models the hydraulic and water quality behavior of water distribution piping systems." />
+<meta property="DC.Subject.epachannel" content="Science &amp; Technology" />
+<meta property="DC.type" content="Data and Tools" />
+<meta property="DC.date.created" content="2014-06-24" />
+<meta property="DC.date.modified" content="2026-09-09" />
+<meta property="DC.date.reviewed" content="2027-09-09" />
+<meta property="DC.creator" content="US EPA,OA" />
+<meta property="DC.language" content="en" />
+<meta property="WebArea" content="Water Research" />
+<meta property="ContentType" content="Basic page" />
+<meta property="NavigationStyle" content="sidebar_navigation" />
+<meta property="og:site_name" content="US EPA" />
+<meta property="og:type" content="Basic page" />
+<meta property="og:url" content="https://www.epa.gov/water-research/epanet" />
+<meta property="og:title" content="EPANET | US EPA" />
+<meta property="og:description" content="Software that models the hydraulic and water quality behavior of water distribution piping systems." />
+<meta property="og:image" content="https://www.epa.gov/sites/all/themes/epa/img/epa-standard-og.jpg" />
+<meta property="og:image:width" content="1200" />
+<meta property="og:image:height" content="630" />
+<meta property="og:updated_time" content="2026-09-09" />
+<meta property="og:image:alt" content="U.S. Environmental Protection Agency" />
+<meta property="og:country_name" content="United States of America" />
+<meta property="article:published_time" content="2014-06-24T13:23:32-04:00" />
+<meta property="article:modified_time" content="2026-09-09" />
+<meta name="twitter:card" content="summary_large_image" />
+<meta name="twitter:description" content="Software that models the hydraulic and water quality behavior of water distribution piping systems." />
+<meta name="twitter:title" content="EPANET | US EPA" />
+<meta name="twitter:image:alt" content="U.S. Environmental Protection Agency" />
+<meta name="twitter:image" content="https://www.epa.gov/sites/all/themes/epa/img/epa-standard-twitter.jpg" />
+<meta name="MobileOptimized" content="width" />
+<meta name="HandheldFriendly" content="true" />
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+<meta http-equiv="x-ua-compatible" content="ie=edge" />
+
+ <title>EPANET | US EPA</title>
+ <link rel="icon" type="image/x-icon" href="/themes/epa_theme/images/favicon.ico">
+ <meta name="msapplication-TileColor" content="#FFFFFF">
+ <meta name="msapplication-TileImage" content="/themes/epa_theme/images/favicon-144.png">
+ <meta name="application-name" content="">
+ <meta name="msapplication-config" content="/themes/epa_theme/images/ieconfig.xml">
+ <link rel="apple-touch-icon-precomposed" sizes="196x196" href="/themes/epa_theme/images/favicon-196.png">
+ <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/themes/epa_theme/images/favicon-152.png">
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/themes/epa_theme/images/favicon-144.png">
+ <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/themes/epa_theme/images/favicon-120.png">
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/themes/epa_theme/images/favicon-114.png">
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/themes/epa_theme/images/favicon-72.png">
+ <link rel="apple-touch-icon-precomposed" href="/themes/epa_theme/images/favicon-180.png">
+ <link rel="icon" href="/themes/epa_theme/images/favicon-32.png" sizes="32x32">
+ <link rel="preload" href="/themes/epa_theme/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2" as="font" crossorigin="anonymous">
+ <link rel="preload" href="/themes/epa_theme/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2" as="font" crossorigin="anonymous">
+ <link rel="preload" href="/themes/epa_theme/fonts/source-sans-pro/sourcesanspro-italic-webfont.woff2" as="font" crossorigin="anonymous">
+ <link rel="preload" href="/themes/epa_theme/fonts/merriweather/Latin-Merriweather-Bold.woff2" as="font" crossorigin="anonymous">
+ <link rel="stylesheet" media="all" href="/themes/contrib/stable/css/core/components/progress.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/core/components/ajax-progress.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/align.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/fieldgroup.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/container-inline.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/clearfix.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/details.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/hidden.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/item-list.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/js.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/nowrap.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/position-container.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/reset-appearance.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/resize.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/system-status-counter.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/system-status-report-counters.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/system-status-report-general-info.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/system/components/tablesort.module.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/filter/filter.caption.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/modules/contrib/entity_embed/css/entity_embed.filter.caption.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/contrib/stable/css/media/filter.caption.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/modules/contrib/paragraphs/css/paragraphs.unpublished.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-arabic.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-kr.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-bn.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-gu.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-sc.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/fonts/noto-sans-tc.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/css/styles.css?tobgk9" />
+<link rel="stylesheet" media="all" href="/themes/epa_theme/css-lib/colorbox.min.css?tobgk9" />
+
+
+ <!-- Google Tag Manager -->
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-L8ZB');</script>
+ <!-- End Google Tag Manager -->
+ </head>
+ <body class="path-node not-front node-page node-page--node-type-page" id="top">
+
+<div class="skiplinks" role="navigation" aria-labelledby="skip-to-main">
+ <a id="skip-to-main" href="#main" class="skiplinks__link visually-hidden focusable">Skip to main content</a>
+</div>
+ <!-- Google Tag Manager (noscript) -->
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-L8ZB" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
+ <!-- End Google Tag Manager (noscript) -->
+
+ <div class="dialog-off-canvas-main-canvas" data-off-canvas-main-canvas>
+
+ <section class="usa-banner" aria-label="Official website of the United States government">
+ <div class="usa-accordion"> <header class="usa-banner__header">
+ <div class="usa-banner__inner">
+ <div class="grid-col-auto">
+ <img class="usa-banner__header-flag" aria-hidden="true" src="/themes/epa_theme/images/us_flag_small.png" alt="U.S. flag" height="11px" width="16px" />
+ </div>
+ <div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
+ <p class="usa-banner__header-text">An official website of the United States government</p>
+ <p class="usa-banner__header-action">Here’s how you know</p></div>
+ <button type="button" class="usa-accordion__button usa-banner__button" aria-expanded="false" aria-controls="gov-banner">
+ <span class="usa-banner__button-text">Here’s how you know</span>
+ </button>
+ </div>
+ </header>
+ <div class="usa-banner__content usa-accordion__content" id="gov-banner">
+ <div class="grid-row grid-gap-lg">
+ <div class="usa-banner__guidance tablet:grid-col-6">
+ <img class="usa-banner__icon usa-media-block__img" src="/themes/epa_theme/images/icon-dot-gov.svg" alt="Dot gov">
+ <div class="usa-media-block__body">
+ <p>
+ <strong>Official websites use .gov</strong>
+ <br> A <strong>.gov</strong> website belongs to an official government organization in the United States.
+ </p>
+ </div>
+ </div>
+ <div class="usa-banner__guidance tablet:grid-col-6">
+ <img class="usa-banner__icon usa-media-block__img" src="/themes/epa_theme/images/icon-https.svg" alt="HTTPS">
+ <div class="usa-media-block__body">
+ <p>
+ <strong>Secure .gov websites use HTTPS</strong>
+ <br> A <strong>lock</strong> (<span class="icon-lock"><svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" class="usa-banner__lock-image" role="img" aria-labelledby="banner-lock-title banner-lock-description"><title id="banner-lock-title">Lock</title><desc id="banner-lock-description">A locked padlock</desc><path fill="#000000" fill-rule="evenodd" d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"/></svg></span>) or <strong>https://</strong> means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
+ </p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="js-view-dom-id-epa-alerts--public">
+ <noscript>
+ <div class="usa-site-alert usa-site-alert--info">
+ <div class="usa-alert">
+ <div class="usa-alert__body">
+ <div class="usa-alert__text">
+ <p>JavaScript appears to be disabled on this computer. Please <a href="/alerts">click here to see any active alerts</a>.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </noscript>
+</div>
+
+
+
+
+
+
+
+
+<header class="l-header js-header-search usa-header usa-header--extended">
+ <div class="usa-overlay"></div>
+ <div class="l-constrain">
+ <div class="l-header__navbar">
+ <div class="l-header__branding">
+ <button
+ type="button"
+ class="l-header__search-button"
+ aria-controls="header-search-drawer"
+ aria-expanded="false"
+ aria-label="Open search drawer"
+ >
+
+<svg class="icon l-header__search-button-icon-open" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#magnifying-glass"></use></svg>
+<svg class="icon l-header__search-button-icon-close" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#xmark"></use></svg> </button>
+ <a class="site-logo" href="/" aria-label="Home" title="Home" rel="home">
+ <span class="site-logo__image">
+ <svg class="site-logo__svg-main" aria-hidden="true" viewBox="0 0 454.1 154.7" xmlns="http://www.w3.org/2000/svg"><path d="m112.8 61.2c-4.8 18.6-22.9 33.3-42.9 33.3-20.1 0-38-14.7-42.9-33.4h.2s9.8 10.3-.2 0c3.1 3.1 6.2 4.4 10.7 4.4s7.7-1.3 10.7-4.4c3.1 3.1 6.3 4.5 10.9 4.4 4.5 0 7.6-1.3 10.7-4.4 3.1 3.1 6.2 4.4 10.7 4.4s7.7-1.3 10.7-4.4c3.1 3.1 6.3 4.5 10.9 4.4 4.3 0 7.4-1.2 10.5-4.3z"/><path d="m113.2 51.2c0-24-19.4-43.5-43.3-43.5-24 0-43.5 19.5-43.5 43.5h39.1c-4.8-1.8-8.1-6.3-8.1-11.6 0-7 5.7-12.5 12.5-12.5 7 0 12.7 5.5 12.7 12.5 0 5.2-3.1 9.6-7.6 11.6z"/><path d="m72.6 147c.7-36.9 29.7-68.8 66.9-70 0 37.2-30 68-66.9 70z"/><path d="m67.1 147c-.7-36.9-29.7-68.8-67.1-70 0 37.2 30.2 68 67.1 70z"/><path d="m240 10.8h-87.9v133.1h87.9v-20.4h-60.3v-36h60.3v-21h-60.3v-35h60.3z"/><path d="m272.8 66.5h27.1c9.1 0 15.2-8.6 15.1-17.7-.1-9-6.1-17.3-15.1-17.3h-25.3v112.4h-27.8v-133.1h62.3c20.2 0 35 17.8 35.2 38 .2 20.4-14.8 38.7-35.2 38.7h-36.3z"/><path d="m315.9 143.9h29.7l12.9-35h54.2l-8.1-21.9h-38.4l18.9-50.7 39.2 107.6h29.7l-53.1-133.1h-33.7z"/></svg>
+ <svg class="site-logo__svg-text" aria-hidden="true" viewBox="0 0 595.4 154.7" xmlns="http://www.w3.org/2000/svg"><path d="m9 8.5v22.4c0 1.9.2 3.3.5 4.3s.7 1.7 1 2.2c1.2 1.4 2.5 2.4 3.9 2.9 1.5.5 2.8.7 4.1.7 2.4 0 4.2-.4 5.5-1.3 1.3-.8 2.2-1.8 2.8-2.9s.9-2.3 1-3.4.1-2 .1-2.6v-22.3h4.7v22.3 1.7c0 .7-.1 1.5-.4 2.4-.3 1.8-1.2 3.6-2.5 5.4-1.8 2.1-3.8 3.5-6 4.2-2.2.6-4 .9-5.3.9-1.8 0-3.8-.3-6.2-1.1s-4.5-2.3-6.2-4.7c-.5-.8-1-1.8-1.4-3.2-.4-1.3-.6-3.3-.6-5.9v-22z"/><path d="m43.2 22.2v-2.9l4.6.1-.1 4.1c.2-.3.4-.7.8-1.2.3-.5.8-.9 1.4-1.4s1.4-.9 2.3-1.3c.9-.3 2.1-.5 3.4-.4.6 0 1.4.1 2.4.3.9.2 1.9.6 2.9 1.2s1.8 1.5 2.4 2.6c.6 1.2.9 2.8.9 4.7l-.4 17-4.6-.1.4-16c0-.9 0-1.7-.2-2.4-.1-.7-.5-1.3-1.1-1.9-1.2-1.2-2.6-1.8-4.3-1.8s-3.1.5-4.4 1.7-2 3.1-2.1 5.7l-.3 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-1.9 2.8s-.6 2.2-.7 3.2c-.1 1.1-.2 1.8-.1 2.4 0 1.3.1 2.5.3 3.7s.5 2.3.9 3.3c.8 2 2.4 3 4.8 3.1 1.9 0 3.3-.7 4.1-1.9.8-1.1 1.2-2.3 1.2-3.6h4.6c-.2 2.5-1.1 4.6-2.7 6.3-1.7 1.8-4.1 2.7-7.1 2.7-.9 0-2.1-.2-3.6-.6-.7-.2-1.4-.6-2.2-1s-1.5-1-2.2-1.7c-.7-.9-1.4-2.1-2-3.6s-.9-3.5-.9-6.1.4-4.8 1.1-6.6c.7-1.7 1.6-3.1 2.7-4.2 1.1-1 2.3-1.8 3.6-2.2s2.5-.6 3.7-.6h1.6c.6.1 1.3.2 1.9.4.7.2 1.4.5 2.1 1 .7.4 1.3 1 1.8 1.7.9 1.1 1.4 2.1 1.7 3.1.2 1 .3 1.8.3 2.6z"/><path d="m164.8 144.8-3.4 9.3h-4.7l3.8-9.6-10.3-25h5.2l7.6 19.8 7.7-19.8h5z"/></svg>
+ </span>
+</a>
+ <button type="button" class="usa-menu-btn usa-button--outline usa-button--inverse l-header__menu-button">Menu</button>
+ </div>
+ <div class="l-header__search" id="header-search-drawer">
+
+<form class="usa-search usa-search--small usa-search--epa" method="get" action="https://search.epa.gov/epasearch">
+ <div role="search">
+ <label class="usa-search__label usa-sr-only" for="search-box">Search</label>
+ <input class="usa-input" id="search-box" type="search" name="querytext" placeholder="Search EPA.gov">
+ <button class="button" type="submit" aria-label="Search">
+
+<svg class="icon usa-search__submit-icon" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#magnifying-glass"></use></svg> <span class="usa-search__submit-text">Search</span>
+ </button>
+ <input type="hidden" name="areaname" value="">
+ <input type="hidden" name="areacontacts" value="">
+ <input type="hidden" name="areasearchurl" value="">
+ <input type="hidden" name="typeofsearch" value="epa">
+ <input type="hidden" name="result_template" value="">
+
+ </div>
+</form>
+ </div>
+ </div>
+
+ </div>
+ <div class="l-header__nav">
+ <nav class="usa-nav usa-nav--epa" role="navigation" aria-label="Primary navigation">
+ <div class="usa-nav__inner">
+ <button type="button" class="usa-nav__close" aria-label="Close">
+
+<svg class="icon icon--nav-close" aria-hidden="true" role="img"><title>Primary navigation</title><use href="/themes/epa_theme/images/sprite.artifact.svg#xmark"></use></svg> </button>
+ <div class="usa-nav__menu">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <ul class="menu menu--main menu--accordion usa-accordion">
+
+
+
+
+
+
+ <li class="menu__item has-subnav is-expanded"><button class="menu__link has-subnav is-expanded usa-nav__link usa-accordion__button" aria-expanded="false" type="button">
+ Environmental Topics
+
+<svg class="icon menu__link-icon" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav usa-nav__submenu usa-megamenu "><li class="menu__item"><a href="/environmental-topics" class="menu__link" data-drupal-link-system-path="node/164839">Environmental Topics</a></li><li class="menu__item"><a href="/environmental-topics/air-topics" class="menu__link" data-drupal-link-system-path="node/165225">Air</a></li><li class="menu__item"><a href="/bedbugs" class="menu__link" data-drupal-link-system-path="node/17591">Bed Bugs</a></li><li class="menu__item"><a href="/environmental-topics/chemicals-pesticides-and-toxics-topics" class="menu__link" data-drupal-link-system-path="node/165371">Chemicals, Toxics, and Pesticide </a></li><li class="menu__item"><a href="/emergency-response" class="menu__link" data-drupal-link-system-path="node/18839">Emergency Response</a></li><li class="menu__item"><a href="/environmental-topics/environmental-information-by-location" class="menu__link" data-drupal-link-system-path="node/165443">Environmental Information by Location </a></li><li class="menu__item"><a href="/environmental-topics/health-topics" class="menu__link" data-drupal-link-system-path="node/165317">Health</a></li><li class="menu__item"><a href="/environmental-topics/land-waste-and-cleanup-topics" class="menu__link" data-drupal-link-system-path="node/165171">Land, Waste, and Cleanup</a></li><li class="menu__item"><a href="/lead" class="menu__link" data-drupal-link-system-path="node/3085">Lead</a></li><li class="menu__item"><a href="/mold" class="menu__link" data-drupal-link-system-path="node/37083">Mold</a></li><li class="menu__item"><a href="/radon" class="menu__link" data-drupal-link-system-path="node/38609">Radon</a></li><li class="menu__item"><a href="/research" class="menu__link" data-drupal-link-system-path="node/35507">Research</a></li><li class="menu__item"><a href="/environmental-topics/science-topics" class="menu__link" data-drupal-link-system-path="node/172685">Science Topics</a></li><li class="menu__item"><a href="/environmental-topics/water-topics" class="menu__link" data-drupal-link-system-path="node/164827">Water Topics</a></li><li class="menu__item"><a href="/topics-epa-web" class="menu__link" data-drupal-link-system-path="topics-epa-web">A-Z Topic Index</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item has-subnav is-expanded"><button class="menu__link has-subnav is-expanded usa-nav__link usa-accordion__button" aria-expanded="false" type="button">
+ Laws &amp; Regulations
+
+<svg class="icon menu__link-icon" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav usa-nav__submenu usa-megamenu "><li class="menu__item"><a href="/laws-regulations" title="View links to regulatory information by topic and sector, and to top pages about environmental laws, regulations, policies, compliance, and enforcement" class="menu__link" data-drupal-link-system-path="node/3157">Laws &amp; Regulations</a></li><li class="menu__item"><a href="/regulatory-information-sector" class="menu__link" data-drupal-link-system-path="node/3173">By Business Sector</a></li><li class="menu__item"><a href="/regulatory-information-topic" class="menu__link" data-drupal-link-system-path="node/66677">By Topic</a></li><li class="menu__item"><a href="/compliance" class="menu__link" data-drupal-link-system-path="node/19411">Compliance</a></li><li class="menu__item"><a href="/enforcement" class="menu__link" data-drupal-link-system-path="node/10885">Enforcement</a></li><li class="menu__item"><a href="/guidance" class="menu__link" data-drupal-link-system-path="node/237295">Guidance</a></li><li class="menu__item"><a href="/laws-regulations/laws-and-executive-orders" class="menu__link" data-drupal-link-system-path="node/66719">Laws and Executive Orders</a></li><li class="menu__item"><a href="/laws-regulations/regulations" class="menu__link" data-drupal-link-system-path="node/11249">Regulations</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item has-subnav is-expanded"><button class="menu__link has-subnav is-expanded usa-nav__link usa-accordion__button" aria-expanded="false" type="button">
+ Report a Violation
+
+<svg class="icon menu__link-icon" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav usa-nav__submenu usa-megamenu "><li class="menu__item"><a href="/report-violation" class="menu__link" data-drupal-link-system-path="node/271510">Report a Violation</a></li><li class="menu__item"><a href="https://echo.epa.gov/report-environmental-violations" class="menu__link">Environmental Violations</a></li><li class="menu__item"><a href="/office-inspector-general/forms/epa-oig-hotline-complaint-form" class="menu__link" data-drupal-link-system-path="node/297651">Fraud, Waste or Abuse</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item has-subnav is-expanded"><button class="menu__link has-subnav is-expanded usa-nav__link usa-accordion__button" aria-expanded="false" type="button">
+ About EPA
+
+<svg class="icon menu__link-icon" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav usa-nav__submenu usa-megamenu "><li class="menu__item"><a href="/aboutepa" class="menu__link" data-drupal-link-system-path="node/851">About EPA</a></li><li class="menu__item"><a href="/aboutepa/our-mission-and-what-we-do" class="menu__link" data-drupal-link-system-path="node/2099">Our Mission and What We Do</a></li><li class="menu__item"><a href="/aboutepa#hq" class="menu__link" data-drupal-link-system-path="node/851">Headquarters Offices</a></li><li class="menu__item"><a href="/aboutepa/regional-and-geographic-offices" class="menu__link" data-drupal-link-system-path="node/254965">Regional Offices</a></li><li class="menu__item"><a href="/aboutepa/epa-laboratories-and-science-advisory-organizations" class="menu__link" data-drupal-link-system-path="node/254969">Labs and Research Centers</a></li><li class="menu__item"><a href="/newsroom" class="menu__link" data-drupal-link-system-path="node/4103">Newsroom</a></li><li class="menu__item"><a href="/planandbudget" class="menu__link" data-drupal-link-system-path="node/863">Planning, Budget, and Results</a></li><li class="menu__item"><a href="/aboutepa/epa-organization-chart" class="menu__link" data-drupal-link-system-path="node/2481">Organization Chart</a></li><li class="menu__item"><a href="/history" class="menu__link" data-drupal-link-system-path="node/162637">EPA History</a></li></ul></li> </ul>
+
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+</nav>
+ </div>
+</header>
+
+<main id="main" class="main" role="main" tabindex="-1">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<div class="l-page page-has-sidebar has-footer">
+ <div class="l-constrain">
+
+ <div class="l-page__header">
+ <div class="l-page__header-first">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<nav aria-labelledby="breadcrumb-label" class="breadcrumb" role="navigation">
+ <h4
+ id="breadcrumb-label" class="breadcrumb__title u-visually-hidden">Breadcrumb</h4>
+
+ <ol class="breadcrumb__list">
+ <li class="breadcrumb__item">
+ <a class="breadcrumb__link" href="/">Home</a>
+ </li>
+ <li class="breadcrumb__item">
+ <a class="breadcrumb__link" href="/water-research">Water Research</a>
+ </li>
+ </ol>
+</nav>
+
+
+
+
+
+
+
+ </div>
+ </div>
+
+
+
+<div class="l-sidebar l-sidebar--reversed">
+ <div class="l-sidebar__main">
+
+
+<article class="article" lang="en">
+
+<h1 class="page-title">
+ EPANET
+</h1>
+
+
+ <div class="u-hide-for-print js-toggle-admin-content">
+ <div data-drupal-messages-fallback class="hidden"></div>
+
+
+
+ </div>
+
+
+
+<div>
+ <div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <h2><em>Application for Modeling Drinking Water Distribution Systems</em></h2><p>EPANET is a software application used throughout the world to model water distribution systems. It was developed as a tool for understanding the movement and fate of drinking water constituents within distribution systems, and can be used for many different types of applications in distribution systems analysis.</p><p>Today, engineers and consultants use EPANET to design and size new water infrastructure, retrofit existing aging infrastructure, optimize operations of tanks and pumps, reduce energy usage, investigate water quality problems, and prepare for emergencies. It can also be used to model contamination threats and evaluate resilience to security threats or natural disasters.</p><hr>
+
+
+
+
+
+
+
+<figure class="figure figure--small u-align-left">
+ <div class="figure__media">
+
+ <img loading="eager" srcset="/system/files/styles/small/private/images/2024-11/washington-aqueduct-dw-treatment.jpg?itok=-ct82Wsi 320w, /system/files/styles/medium/private/images/2024-11/washington-aqueduct-dw-treatment.jpg?itok=YO3TWOvQ 640w" sizes="(max-width: 320px) calc(100vw - 2rem), 320px" width="320" height="214" src="/system/files/styles/small/private/images/2024-11/washington-aqueduct-dw-treatment.jpg?itok=-ct82Wsi" alt="Water treatment facility with many grey and green pipes.">
+
+
+
+
+
+ </div>
+
+ </figure>
+
+<p>On this page:</p><ul><li><a href="#com">Compatibility and Open Source Project</a></li><li><a href="#soft">Software and Manuals</a></li><li><a href="#cap">Capabilities</a></li><li><a href="#app">Applications</a></li><li><a href="#tech">Technical Support</a></li><li><a href="#res">Related Resources</a></li></ul><hr><h3 class="highlight"><a class="ck-anchor" id="com"></a>Compatibility and Open Source Project</h3><p>EPANET is public domain software that can be freely copied and distributed. It is a Windows®-based program that will work with all versions of Windows.&nbsp;</p><div data-embed-button="paragraphs" data-paragraph-id="fd13c218-0c46-449c-937d-e8db87e995fb" data-paragraph-revision-id="23727" data-entity-label="Paragraphs" data-langcode="en" data-view-mode="embed" data-entity-embed-display="entity_reference_revisions:entity_reference_revisions_entity_view" data-entity-type="embedded_paragraphs" data-entity-uuid="fd13c218-0c46-449c-937d-e8db87e995fb" data-entity-embed-display-settings="[]" class="embedded-entity">
+
+
+
+
+
+
+
+
+<div class="box box--special"> <h4 class="box__title"> EPANET Open Source Project
+ </h4>
+ <div class="box__content">
+
+ <p>Continued development and bug fixes for EPANET are occurring under an open source project site in GitHub. Software bugs and feature requests can be reported on the site as issues, and information is available for those interested in contributing to the code and/or viewing the quality assurance plan, contributor guidelines, software development roadmap, automated testing suite, and other information.</p>
+
+</div>
+ <div class="box__footer">
+ <a class="box__footer-link" href="https://github.com/USEPA/EPANET2.2"> Access EPA’s GitHub site for EPANET 2.2 open source project</a>
+ </div>
+ </div>
+
+
+
+
+</div>
+<p><em>Disclaimer: Any mention of trade names, manufacturers, or products does not imply an endorsement by EPA. EPA and its employees do not endorse commercial products, services, or enterprises.</em></p><h3 class="highlight"><a class="ck-anchor" id="soft"></a>Software and Manuals</h3><h4>Software</h4><table><thead><tr><th><strong>Date</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr><td>07/23/2020</td><td><a href="https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2_setup.exe">Self-Extracting Installation Program for EPANET 2.2 (EXE)</a><small>(3.5 MB)</small></td></tr><tr><td>07/23/2020</td><td><a href="https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2.zip"><ins data-date="2020,5,27">Non-Installing Software for EPANET 2.2 (ZIP)</ins></a><small>(2.84 MB)</small></td></tr><tr><td>10/01/2018</td><td>
+
+
+
+
+
+<a href="https://www.epa.gov/sites/default/files/2018-10/en2setup2.00.12.01.exe" class="file">
+<svg class="icon file__icon is-spaced-after" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#file" /></svg>Self-Extracting Installation Program for EPANET 2.00.12 (EXE) (exe)</a>
+
+
+&nbsp; &nbsp; &nbsp;</td></tr></tbody></table><h4>Toolkit and Extensions</h4><table><thead><tr><th><strong>Date</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr><td>07/23/2020</td><td><a href="https://github.com/USEPA/EPANET2.2/releases/download/2.2.0/epanet2.2_toolkit.zip">EPANET 2.2 Programmer’s Toolkit Files (ZIP)</a><small>(847 KB)</small></td></tr><tr><td>03/20/2008</td><td>
+
+
+
+
+<span class="document">
+
+
+
+
+
+<a href="https://www.epa.gov/sites/default/files/2014-06/en2toolkit.zip" class="file">
+<svg class="icon file__icon is-spaced-after" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#file" /></svg>EPANET 2 Programmer’s Toolkit files (zip)</a>
+
+
+
+ <span class="document__meta">(246.78 KB)
+
+ </span></span>
+</td></tr><tr><td>07/31/2023</td><td><a href="https://cfpub.epa.gov/si/si_public_record_Report.cfm?dirEntryId=358205&amp;Lab=CESER">EPANET-MSX (Multi-Species eXtension)</a></td></tr><tr><td>10/01/2015</td><td><a href="https://cfpub.epa.gov/si/si_public_record_report.cfm?dirEntryId=309673&amp;simpleSearch=1&amp;searchAll=EPANET-RTX">EPANET-RTX (Real–Time eXtension)</a></td></tr></tbody></table><h4>Source Codes and Updates</h4><table><thead><tr><th><strong>Date</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr><td>07/23/2020</td><td><a href="https://github.com/USEPA/EPANET2.2/archive/2.2.0.zip">EPANET 2.2 Source Code Files (ZIP)</a><small>(3 MB)</small></td></tr><tr><td>10/01/2018</td><td>
+
+
+
+
+
+<a href="https://www.epa.gov/sites/default/files/2018-10/en2source.zip" class="file">
+<svg class="icon file__icon is-spaced-after" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#file" /></svg>EPANET 2 Source Code Files (ZIP) (zip)</a>
+
+
+</td></tr><tr><td>07/23/2020</td><td>
+
+
+
+
+
+<a href="https://www.epa.gov/sites/default/files/2020-08/epanet2.2_updates_0.txt" class="file">
+<svg class="icon file__icon is-spaced-after" aria-hidden="true"><use href="/themes/epa_theme/images/sprite.artifact.svg#file" /></svg>EPANET 2.2 Updates (TXT) (txt)</a>
+
+
+</td></tr><tr><td>05/18/2020</td><td><a href="/sites/production/files/2018-10/updates_0.txt">EPANET 2.0 Updates (TXT)</a></td></tr></tbody></table><h4>Manuals</h4><table><thead><tr><th><strong>Date</strong></th><th><strong>Description</strong></th></tr></thead><tbody><tr><td>07/23/2020</td><td><a href="https://usepa.github.io/EPANET2.2/"><ins data-date="2020,5,18">EPANET 2.2</ins> Online User's Manual</a></td></tr><tr><td>07/16/2021</td><td><a href="https://nepis.epa.gov/Exe/ZyPURL.cgi?Dockey=P1012M9F.txt">Manual Del Usuario De EPANET 2.2 (EPANET 2.2 User Manual, Spanish}</a></td></tr><tr><td>09/11/2000</td><td><a href="https://nepis.epa.gov/Exe/ZyPURL.cgi?Dockey=P1007WWU.txt">EPANET 2.0 User's Manual</a></td></tr></tbody></table><h3 class="highlight"><a class="ck-anchor" id="cap"></a>Capabilities</h3><a href="/sites/default/files/2015-03/epanet.gif">
+
+
+
+
+
+
+
+<figure class="figure figure--medium u-align-right">
+ <div class="figure__media">
+
+ <img loading="eager" srcset="/sites/default/files/styles/small/public/2015-03/epanet.gif?itok=hdSbIkU2 243w" sizes="(max-width: 640px) calc(100vw - 4rem), 640px" width="243" height="233" src="/sites/default/files/styles/medium/public/2015-03/epanet.gif?itok=aNRaB3G6" alt="Screen shot of EPANET software.">
+
+
+
+
+
+ </div>
+
+ </figure>
+
+</a><p>With EPANET, users can perform extended-period simulation of the hydraulic and water quality behavior within pressurized pipe networks, which consist of pipes, nodes (junctions), pumps, valves, storage tanks, and reservoirs. It can be used to track the flow of water in each pipe, the pressure at each node, the height of the water in each tank, a chemical concentration, the age of the water, and source tracing throughout the network during a simulation period.</p><p>EPANET's user interface provides a visual network editor that simplifies the process of building pipe network models and editing their properties and data. Various data reporting and visualization tools are used to assist in interpreting the results of a network analysis, including color-coded network maps, data tables, energy usage, reaction, calibration, time series graphs, and profile and contour plots.</p><h4><strong>Hydraulic Modeling</strong></h4><p>Full-featured and accurate hydraulic modeling is a prerequisite for doing effective water quality modeling. EPANET contains a state-of-the-art hydraulic analysis engine that includes the following capabilities:</p><ul><li>Ability to use pressure dependent demands in hydraulic analyses.</li><li>System operation based on both simple tank level or timer controls and on complex rule-based controls.</li><li>No limit on the size of the network that can be analyzed.</li><li>Computes friction headloss using the Hazen-Williams, Darcy-Weisbach, or Chezy-Manning formulas.</li><li>Includes minor head losses for bends, fittings, etc.</li><li>Models constant or variable speed pumps.</li><li>Computes pumping energy and cost.</li><li>Models various types of valves, including shutoff, check, pressure regulating, and flow control.</li><li>Allows storage tanks to have any shape (i.e., diameter can vary with height).</li><li>Considers multiple demand categories at nodes, each with its own pattern of time variation.</li><li>Models pressure-dependent flow issuing from emitters (sprinkler heads).</li><li>Provides robust results for hydraulic convergence and low/zero flow conditions.</li></ul><h4><strong>Water Quality Modeling</strong></h4><p>In addition to hydraulic modeling, EPANET provides the following water quality modeling capabilities:</p><ul><li>Storage tanks as being either complete mix, plug flow, or two-compartment reactors.</li><li>Movement of a non-reactive tracer material through the network over time.</li><li>Movement and fate of a reactive material as it grows or decays with time.</li><li>Age of water throughout a network.</li><li>Percent of flow from a given node reaching all other nodes over time.</li><li>Reactions in the bulk flow and at the pipe wall.</li><li>Accounts for mass transfer limitations when modeling pipe wall reactions.</li><li>Allows growth or decay reactions to proceed up to a limiting concentration.</li><li>Employs global reaction rate coefficients that can be modified on a pipe-by-pipe basis.</li><li>Allows wall reaction rate coefficients to be correlated to pipe roughness.</li><li>Allows for time-varying concentration or mass inputs at any location in the network.</li></ul><h4><strong>Water Security and Resilience Modeling</strong></h4><p>Extensions to EPANET are available that work with the existing software to simulate the interactions between multiple chemical and biological agents and their interactions with the bulk water and pipe walls in water distribution systems.</p><ul><li><em>EPANET-MSX (Multi-Species eXtension)</em>. This extension&nbsp;enables EPANET to model complex reactions between multiple chemical and biological species in both the bulk flow and at the pipe wall. This capability has been included into both a stand-alone executable program as well as a toolkit library of functions that programmers can use to build customized applications. EPANET-MSX allows users the flexibility to model a wide-range of chemical reactions of interest, including, auto-decomposition of chloramines to ammonia, the formation of disinfection byproducts, biological regrowth, combined reaction rate constants in multi-source systems, and mass transfer limited oxidation-pipe wall adsorption reactions.</li><li><em>EPANET-RTX (Real–Time eXtension)</em>.&nbsp;This extension provides the methods and software tools by which operational data can be connected with a network infrastructure model, and the resulting network simulation model can be calibrated, verified, and continually tested for accuracy using operational data. EPANET-RTX is software for building real-time hydraulic and water quality models. EPANET-RTX brings real-time analytics to water distribution system modeling, planning, and operations. Analytics refer to the discovery and interpretation of patterns in data. EPANET-RTX software works by providing access accessing available utility data and effectively using it to run a hydraulic and water quality model.</li></ul><div data-embed-button="paragraphs" data-paragraph-id="9eb54f2d-6feb-46da-a568-ea13d98cb130" data-paragraph-revision-id="23729" data-entity-label="Paragraphs" data-langcode="en" data-view-mode="embed" data-entity-embed-display="entity_reference_revisions:entity_reference_revisions_entity_view" data-entity-type="embedded_paragraphs" data-entity-uuid="9eb54f2d-6feb-46da-a568-ea13d98cb130" data-entity-embed-display-settings="[]" class="embedded-entity">
+
+
+
+
+
+
+
+
+<div class="box box--special"> <h4 class="box__title"> Programmer's Toolkit
+ </h4>
+ <div class="box__content">
+
+ <p>This toolkit is a dynamic link library (DLL) of functions that allow developers to customize EPANET to their own needs. The functions can be incorporated into 32-bit Windows applications written in C/C++, Visual Basic, or any other language that can call functions within a Windows DLL. There are over 50 functions that can be used to open a network description file, read and modify various network design and operating parameters, run multiple extended-period simulations accessing results as they are generated or saving them to file, and write selected results to a file in a user-specified format.</p>
+
+<p>The toolkit is useful for developing specialized applications, such as optimization or automated calibration models that require running many network analyses. It can simplify adding analysis capabilities to integrated network-modeling environments based on computer-aided design (CAD), geographical information system (GIS), and database packages. A Windows Help file is available to explain how to use the various toolkit functions. It offers some simple programming examples. The toolkit also includes several different header files, function definition files, and .lib files that simplify the task of interfacing it with code.</p>
+
+</div>
+ </div>
+
+
+
+
+</div>
+<h3 class="highlight"><a class="ck-anchor" id="app"></a>Applications</h3><div data-embed-button="paragraphs" data-paragraph-id="f93db91b-fd84-4008-933c-bdf77d72c7b4" data-paragraph-revision-id="23717" data-entity-label="Paragraphs" data-langcode="en" data-view-mode="embed" data-entity-embed-display="entity_reference_revisions:entity_reference_revisions_entity_view" data-entity-type="embedded_paragraphs" data-entity-uuid="f93db91b-fd84-4008-933c-bdf77d72c7b4" data-entity-embed-display-settings="[]" class="embedded-entity">
+
+
+
+
+
+
+
+
+<div class="box box--related-info u-align-right"> <h4 class="box__title"> Research Publications
+ </h4>
+ <div class="box__content">
+
+ <p><a href="https://cfpub.epa.gov/si/si_public_search_results.cfm?keyword=EPANET&amp;actType=&amp;TIMSType=+&amp;TIMSSubTypeID=&amp;DEID=&amp;epaNumber=&amp;ntisID=&amp;archiveStatus=Both&amp;ombCat=Any&amp;dateBeginCreated=&amp;dateEndCreated=&amp;dateBeginPublishedPresented=&amp;dateEndPublishedPresented=&amp;dateBeginUpdated=&amp;dateEndUpdated=&amp;dateBeginCompleted=&amp;dateEndCompleted=&amp;personID=&amp;role=Any&amp;journalID=&amp;publisherID=&amp;sortBy=revisionDate&amp;count=25">EPANET research publications in EPA's Science Inventory</a></p>
+
+</div>
+ </div>
+
+
+
+
+</div>
+<p>EPANET helps water utilities maintain and improve the quality of water delivered to consumers. It can be used for the following:</p><ul><li>Design sampling programs</li><li>Study disinfectant loss and byproduct formations</li><li>Conduct consumer exposure assessments</li><li>Evaluate alternative strategies for improving water quality</li><li>Modify pumping and tank filling/emptying schedules to reduce water age</li><li>Use booster disinfection stations at key locations to maintain target residuals</li><li>Plan and improve a system's hydraulic performance</li><li>Assist with pipe, pump, and valve placement and sizing</li><li>Energy minimization</li><li>Fire flow analysis</li><li>Vulnerability studies</li></ul><h3 class="highlight"><a class="ck-anchor" id="tech"></a>Technical Support</h3><p>For comments or technical questions, <a href="/water-research/forms/more-information-about-epanet">contact us about EPANET</a>.</p><h3 class="highlight"><a class="ck-anchor" id="res"></a>Related Resources</h3><ul><li><a href="/water-research/drinking-water-infrastructure-resilience-and-sustainability-research">Drinking water infrastructure resilience and sustainability research</a></li><li><a href="/emergency-response-research/water-security" data-entity-type="node" data-entity-uuid="8316032f-075d-4c01-84c9-6b933513fe8e" data-entity-substitution="canonical">Water security research</a></li><li><a href="/water-research/drinking-water-models-tools-and-methods">Drinking water models, tools, and analytical methods</a></li><li><a href="/ground-water-and-drinking-water/drinking-water-technologies">Drinking water technologies</a></li><li><a href="/research/epa-science-models-and-research-tools-smart-search">EPA Science Models and Research Tools (SMaRT) Search</a></li></ul>
+
+
+
+
+
+
+
+
+ </div>
+ </div>
+
+
+ </article>
+ </div>
+
+ <div class="l-sidebar__sidebar">
+
+
+
+
+
+
+<div class="menu-sidenav__overlay"></div>
+
+
+
+
+
+ <div id="block-webareamenu" class="block--web-area-menu block">
+
+
+
+
+ <h2 class="block__title"><a href="/water-research" hreflang="en">Water Research</a></h2>
+
+
+
+ <div class="block__content">
+
+
+ <button type="button" class="usa-button usa-button--outline web-area-menu__button" id="web-area-menu__button" aria-label="toggle the side navigation menu">
+
+<svg class="usa-icon menu-button--open" aria-hidden="true" role="img"><title>Open Sidenav Menu</title><use href="/themes/epa_theme/images/sprite.svg#menu"></use></svg>
+<svg class="usa-icon menu-button--close" aria-hidden="true" role="img"><title>Close Sidenav Menu</title><use href="/themes/epa_theme/images/sprite.svg#close"></use></svg> </button>
+
+ <nav class="menu--sidenav-nav">
+
+
+ <ul class="menu--sidenav menu menu--group_menu_link_content-132">
+
+
+
+
+
+
+ <li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/watersheds-research" class="menu__link has-subnav" data-drupal-link-system-path="node/41069">Watersheds Research</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item"><a href="/water-research/watershed-assessment-research" class="menu__link" data-drupal-link-system-path="node/286551">Watershed Assessment Research</a></li><li class="menu__item"><a href="/water-research/ecosystem-and-community-resilience-research" class="menu__link" data-drupal-link-system-path="node/286553">Ecosystem and Community Resilience Research</a></li><li class="menu__item"><a href="/water-research/advanced-ambient-water-quality-research" class="menu__link" data-drupal-link-system-path="node/286554">Advanced Ambient Water Quality Research</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/nutrients-and-harmful-algal-blooms-research" class="menu__link has-subnav" data-drupal-link-system-path="node/286434">Nutrients and Harmful Algal Blooms Research</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item"><a href="/water-research/nutrients-research" class="menu__link" data-drupal-link-system-path="node/41075">Nutrients Research</a></li><li class="menu__item"><a href="/water-research/harmful-algal-blooms-research" class="menu__link" data-drupal-link-system-path="node/54111">Harmful Algal Blooms Research</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/water-treatment-and-infrastructure-research" class="menu__link has-subnav" data-drupal-link-system-path="node/286435">Water Treatment and Infrastructure Research</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/drinking-water-research" class="menu__link has-subnav" data-drupal-link-system-path="node/41117">Drinking Water Research</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item"><a href="/water-research/treatment-and-control-drinking-water-contaminants-research" title="Treatment and Control of Drinking Water Contaminants Research" class="menu__link" data-drupal-link-system-path="node/272751">Treatment and Control of Contaminants</a></li><li class="menu__item"><a href="/water-research/drinking-water-infrastructure-resilience-and-sustainability-research" title="Drinking Water Infrastructure Resilience and Sustainability Research" class="menu__link" data-drupal-link-system-path="node/270890">Infrastructure Resilience and Sustainability</a></li><li class="menu__item"><a href="/water-research/source-water-quality-research" title="Source Water Quality Research" class="menu__link" data-drupal-link-system-path="node/273222">Source Water Quality</a></li><li class="menu__item"><a href="/water-research/drinking-water-contaminants-exposure-and-health-risks-research" title="Drinking Water Contaminants Exposure and Health Risks Research" class="menu__link" data-drupal-link-system-path="node/293338">Exposure and Health Risks</a></li><li class="menu__item"><a href="/water-research/drinking-water-models-tools-and-methods" title="Drinking Water Models, Tools, and Analytical Methods" class="menu__link" data-drupal-link-system-path="node/293294">Models, Tools, and Analytical Methods</a></li><li class="menu__item"><a href="/water-research/drinking-water-technical-assistance-support-infrastructure-investment-jobs-act" title="Drinking Water Technical Assistance in Support of the Bipartisan Infrastructure Law" class="menu__link" data-drupal-link-system-path="node/278858">Technical Assistance in Support of BIL</a></li><li class="menu__item"><a href="/water-research/training-outreach-and-technical-support" title="Training, Outreach, and Technical Support" class="menu__link" data-drupal-link-system-path="node/286490">Training, Outreach, and Technical Support</a></li></ul></li><li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/water-research-and-polyfluoroalkyl-substances-pfas" class="menu__link has-subnav" data-drupal-link-system-path="node/291101">PFAS Research</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item"><a href="/water-research/pfas-analytical-methods-development-and-sampling-research" class="menu__link" data-drupal-link-system-path="node/247281">PFAS Analytical Methods Research</a></li></ul></li><li class="menu__item"><a href="/water-research/alternative-water-sources-research" class="menu__link" data-drupal-link-system-path="node/211835">Alternative Water Sources Research</a></li><li class="menu__item"><a href="/water-research/stormwater-management-research" class="menu__link" data-drupal-link-system-path="node/41125">Stormwater Management Research</a></li><li class="menu__item"><a href="/water-research/wastewater-research" class="menu__link" data-drupal-link-system-path="node/275960">Wastewater Research</a></li></ul></li>
+
+
+
+
+
+ <li class="menu__item"><a href="/water-research/grants-water-research" class="menu__link" data-drupal-link-system-path="node/286714">Water Research Grants</a></li>
+
+
+
+
+
+ <li class="menu__item"><a href="/water-research/water-research-outputs" class="menu__link" data-drupal-link-system-path="node/286477">Research Outputs</a></li>
+
+
+
+
+
+ <li class="menu__item has-subnav usa-accordion" data-allow-multiple="true"><a href="/water-research/training-outreach-and-technical-support" class="menu__link has-subnav" data-drupal-link-system-path="node/286490"> Training, Outreach, and Technical Support</a><button class="menu__link has-subnav usa-accordion__button" aria-expanded="false" type="button"><svg class="icon menu__link-icon" role="img"><title>expand or collapse the child menu</title><use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use></svg></button><ul class="menu menu__subnav"><li class="menu__item"><a href="/water-research/harmful-algal-blooms-hypoxia-and-nutrients-research-webinar-series" class="menu__link" data-drupal-link-system-path="node/286606">Harmful Algal Blooms, Hypoxia, and Nutrients Research Webinars</a></li><li class="menu__item"><a href="/water-research/small-drinking-water-systems-webinar-series" class="menu__link" data-drupal-link-system-path="node/74577">Small Drinking Water Systems Webinars</a></li><li class="menu__item"><a href="/water-research/water-research-webinar-series" class="menu__link" data-drupal-link-system-path="node/73123">Water Research Webinars</a></li></ul></li> </ul>
+
+
+
+ </nav>
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <div class="menu-sidenav__contact" id="menu-sidenav__contact">
+ <a href="/water-research/forms/contact-us-about-water-research" hreflang="en">Contact Us about Water Research</a>
+
+ </div>
+ </div>
+ </div>
+
+
+
+
+ </div>
+
+ <div class="l-page__footer">
+ <div class="l-constrain">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="l-page__footer-contact"><a href="/water-research/forms/contact-us-about-water-research">Contact Us about Water Research</a> to ask a question, provide feedback, or report a problem.</div>
+<div class="l-page__footer-last-updated">Last updated on September 9, 2026</div>
+
+
+
+
+
+
+
+ </div>
+ </div>
+ </div>
+
+
+ </main>
+
+
+<footer class="footer" role="contentinfo">
+ <div class="l-constrain">
+ <div class="footer__pre-footer">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <ul class="list list--footer-language-bar">
+ <li><a href="/lep/assistance">Assistance</a></li>
+ <li><a href="https://espanol.epa.gov/">Spanish</a></li>
+ <li><a href="/lep/arabic">Arabic</a></li>
+ <li><a href="/lep/simplified-chinese">Chinese (simplified)</a></li>
+ <li><a href="/lep/traditional-chinese">Chinese (traditional)</a></li>
+ <li><a href="/lep/french">French</a></li>
+ <li><a href="/lep/sante-ak-anviwonman-enfomasyon-kreyol-ayisyen">Haitian Creole</a></li>
+ <li><a href="/lep/korean">Korean</a></li>
+ <li><a href="/lep/saude-e-informacoes-ambientais-em-portugues">Portuguese</a></li>
+ <li><a href="/lep/russian">Russian</a></li>
+ <li><a href="/lep/tagalog">Tagalog</a></li>
+ <li><a href="/lep/vietnamese">Vietnamese</a></li>
+</ul>
+
+
+
+
+
+
+
+ </div>
+ <img class="footer__epa-seal" src="/themes/epa_theme/images/epa-seal.svg" alt="United States Environmental Protection Agency" height="100" width="100">
+ <div class="footer__content contextual-region">
+
+
+
+ <div class="footer__column">
+ <h2>Discover.</h2>
+ <ul class="menu menu--footer">
+ <li class="menu__item">
+ <a href="/accessibility/epa-accessibility-statement" class="menu__link">Accessibility Statement</a>
+ </li>
+ <!--li class="menu__item">
+ <a href="#" class="menu__link">EPA Administrator</a>
+ </li-->
+ <li class="menu__item">
+ <a href="/planandbudget" class="menu__link">Budget &amp; Performance</a>
+ </li>
+ <li class="menu__item">
+ <a href="/contracts" class="menu__link">Contracting</a>
+ </li>
+ <li class="menu__item">
+ <a href="/utilities/wwwepagov-snapshots" class="menu__link">EPA www Web Snapshot</a>
+ </li>
+ <li class="menu__item">
+ <a href="/grants" class="menu__link">Grants</a>
+ </li>
+ <li class="menu__item">
+ <a href="/ocr/no-fear-act-data" class="menu__link">No FEAR Act Data</a>
+ </li>
+ <li class="menu__item">
+ <a href="/web-policies-and-procedures/plain-writing" class="menu__link">Plain Writing</a>
+ </li>
+ <li class="menu__item">
+ <a href="/privacy/privacy-and-security-notice" class="menu__link">Privacy and Security Notice</a>
+ </li>
+ </ul>
+ </div>
+ <div class="footer__column">
+ <h2>Connect.</h2>
+ <ul class="menu menu--footer">
+ <li class="menu__item">
+ <a href="/data" class="menu__link">Data</a>
+ </li>
+ <li class="menu__item">
+ <a href="/office-inspector-general" class="menu__link">Inspector General</a>
+ </li>
+ <li class="menu__item">
+ <a href="/careers" class="menu__link">Jobs</a>
+ </li>
+ <li class="menu__item">
+ <a href="/newsroom" class="menu__link">Newsroom</a>
+ </li>
+ <li class="menu__item">
+ <a href="https://www.regulations.gov/" class="menu__link">Regulations.gov</a>
+ </li>
+ <li class="menu__item">
+ <a href="/newsroom/email-subscriptions-epa-news-releases" class="menu__link">Subscribe</a>
+ </li>
+ <li class="menu__item">
+ <a href="https://www.usa.gov/" class="menu__link">USA.gov</a>
+ </li>
+ <li class="menu__item">
+ <a href="https://www.whitehouse.gov/" class="menu__link">White House</a>
+ </li>
+ </ul>
+ </div>
+ <div class="footer__column">
+ <h2>Ask.</h2>
+ <ul class="menu menu--footer">
+ <li class="menu__item">
+ <a href="/home/forms/contact-epa" class="menu__link">Contact EPA</a>
+ </li>
+ <li class="menu__item">
+ <a href="/web-policies-and-procedures/epa-disclaimers" class="menu__link">EPA Disclaimers</a>
+ </li>
+ <li class="menu__item">
+ <a href="/aboutepa/epa-hotlines" class="menu__link">Hotlines</a>
+ </li>
+ <li class="menu__item">
+ <a href="/foia" class="menu__link">FOIA Requests</a>
+ </li>
+ <li class="menu__item">
+ <a href="/home/frequent-questions-specific-epa-programstopics" class="menu__link">Frequent Questions</a>
+ </li>
+ <li class="menu__item">
+ <a id="epa-touchpoint" class="menu__link" href="#">Site Feedback</a>
+ </li>
+ </ul>
+ <h2>Follow.</h2>
+ <ul class="menu menu--social">
+ <li class="menu__item">
+ <a class="menu__link" aria-label="EPA’s Facebook" href="https://www.facebook.com/EPA">
+ <svg class="icon icon--social" aria-hidden="true">
+ <use xlink:href="/themes/epa_theme/images/sprite.artifact.svg#facebook-square" xmlns:xlink="http://www.w3.org/1999/xlink" />
+ </svg> </a>
+ </li>
+ <li class="menu__item">
+ <a class="menu__link" aria-label="EPA’s Twitter / X" href="https://x.com/epa">
+ <svg class="icon icon--social" aria-hidden="true">
+ <use xlink:href="/themes/epa_theme/images/sprite.artifact.svg#twitter-square" xmlns:xlink="http://www.w3.org/1999/xlink" />
+ </svg> </a>
+ </li>
+ <li class="menu__item">
+ <a class="menu__link" aria-label="EPA’s Youtube" href="https://www.youtube.com/user/USEPAgov">
+ <svg class="icon icon--social" aria-hidden="true">
+ <use xlink:href="/themes/epa_theme/images/sprite.artifact.svg#youtube-square" xmlns:xlink="http://www.w3.org/1999/xlink" />
+ </svg> </a>
+ </li>
+ <!--li class="menu__item">
+ <a class="menu__link" aria-label="EPA’s Flickr" href="https://www.flickr.com/photos/usepagov">
+ <svg class="icon icon--social" aria-hidden="true">
+ <use xlink:href="/themes/epa_theme/images/sprite.artifact.svg#flickr-square"></use>
+ </svg> </a>
+ </li-->
+ <li class="menu__item">
+ <a class="menu__link" aria-label="EPA’s Instagram" href="https://www.instagram.com/epagov">
+ <svg class="icon icon--social" aria-hidden="true">
+ <use xlink:href="/themes/epa_theme/images/sprite.artifact.svg#instagram-square" xmlns:xlink="http://www.w3.org/1999/xlink" />
+ </svg> </a>
+ </li>
+ </ul>
+ </div>
+<script src="https://touchpoints.app.cloud.gov/touchpoints/f276bd95.js" async></script>
+<style>a#epa-touchpoint{color:#dfe1e2;cursor:pointer;}a#epa-touchpoint:hover{color:#fff;}</style>
+
+
+
+ </div>
+ </div>
+</footer>
+
+ </div>
+
+
+
+<a href="#top" class="back-to-top" title="Back to top">
+ <svg class="back-to-top__icon" role="img" aria-label="Back to top">
+ <use href="/themes/epa_theme/images/sprite.artifact.svg#angle"></use>
+ </svg>
+</a>
+ <script type="application/json" data-drupal-selector="drupal-settings-json">{"path":{"baseUrl":"\/","pathPrefix":"","currentPath":"node\/55761","currentPathIsAdmin":false,"isFront":false,"currentLanguage":"en"},"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"ajaxPageState":{"libraries":"eJxNzVEKAyEMhOELWT2SxDrVUM2K0Yq3b1kou2_DB8MPGTy2Rw2I7klt8CEGjfzIqHCpHIHKDSoiky8s7xsqRwh9fIXMk9dWXju5334Iljlf7sVloNt_pVGn1KlldbHPRsVeYqe0GQprRjS6daC6QIovZSVEKA","theme":"epa_theme","theme_token":null},"ajaxTrustedUrl":[],"epaAlerts":{"tomeEnabled":false,"context":"public"},"mediaelement":{"attachSitewide":0},"user":{"uid":0,"permissionsHash":"22f8a0cb6c7f034501b4aece15a0c7cba81574dfb22738fcd38d4ed429155d85"}}</script>
+<script src="/core/assets/vendor/jquery/jquery.min.js?v=3.7.1"></script>
+<script src="/core/assets/vendor/once/once.min.js?v=1.0.1"></script>
+<script src="/core/misc/drupalSettingsLoader.js?v=10.6.19"></script>
+<script src="/core/misc/drupal.js?v=10.6.19"></script>
+<script src="/core/misc/drupal.init.js?v=10.6.19"></script>
+<script src="/core/assets/vendor/tabbable/index.umd.min.js?v=6.3.0"></script>
+<script src="/core/misc/progress.js?v=10.6.19"></script>
+<script src="/core/assets/vendor/loadjs/loadjs.min.js?v=4.3.0"></script>
+<script src="/core/misc/debounce.js?v=10.6.19"></script>
+<script src="/core/misc/announce.js?v=10.6.19"></script>
+<script src="/core/misc/message.js?v=10.6.19"></script>
+<script src="/core/misc/ajax.js?v=10.6.19"></script>
+<script src="/themes/contrib/stable/js/ajax.js?v=10.6.19"></script>
+<script src="/themes/epa_theme/js/dist/common.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/scripts.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/header-search.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/epa-alerts.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/sitewide-alert.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/private-sitewide-alert.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/definition.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/external-links.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/protected-links.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/vid-copy.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/media-link.min.js?v=20260713"></script>
+<script src="/themes/epa_theme/js/dist/sidenav-menu.min.js?v=20260713"></script>
+<script src="/modules/custom/epa_wysiwyg/js/plugins/epaNew/epaNew.js?tobgk9"></script>
+
+
+ </body>
+</html>
diff --git a/docs/link-grabber.md b/docs/link-grabber.md
index a68f8bc8..e6c310df 100644
--- a/docs/link-grabber.md
+++ b/docs/link-grabber.md
@@ -13,6 +13,7 @@
- Several links, or a `.txt` or `.ef2` list, dropped on the download list.
- **The clipboard.** **Tasks → Add batch download from clipboard** (**Ctrl+B**, also in the tray icon's menu) reads the copied text when you choose it and lists every download link in it: `http`, `https`, `ftp` and magnet links, in a list, a forum post, Markdown or HTML, each once.
- **Pasting.** Choose **Tasks → Link grabber...** and press **Ctrl+V**: every download link in the copied text is added.
+- **A web page's address.** Paste or copy the address of a page (`https://example.com/downloads`) and MDM reads the page and lists the links on it, as the browser's **Download all links** does, in a package named after the page. The page itself is left unticked. This works for addresses that came on their own (pasted, copied, typed, in a list), not for the links found on a page, so MDM never wanders off through a site. MDM reads only what the page itself holds: links a page's scripts add after it loads come only through the browser.
A magnet link shows as **Magnet link** and isn't looked up: once you click **Start** or **Add to queue**, MDM finds the torrent's files and adds it with all of them, in the package's folder (or the **Torrents** folder when the package has none).
@@ -35,9 +36,9 @@ As links arrive, MDM asks each server about its file, as IDM's **Download all li
- **Needs a login**: the server wants a user name and password, or the page's cookies.
- **Busy, try later**: the server asked to wait.
-Turn the look-ups off in **Options → Archives → Look links up when they arrive**. Some file hosts count a look-up as a download.
+Turn the look-ups off in **Options → Archives → Look links up when they arrive**. Some file hosts count a look-up as a download. With the look-ups off, MDM asks nothing of the network until you start, so a web page's address isn't read for its links either.
-**Hide web pages** (on by default) leaves out links to pages (`.html`, `.php` and the like): they are neither shown nor downloaded.
+**Hide web pages** (on by default) leaves out links to pages (`.html`, `.php` and the like, and any link whose look-up found a web page): they are neither shown nor downloaded.
## The package box