MECH-DUMP(1p)
π¦ MECH-DUMP(1p) β the user-contributed Perl docs, but make it cute
okay bestie, so this is mech-dump, part of the Perl user-contributed manual pages (that's the 1p vibe iykyk). it's a lil command-line icon and it's about to tell you everything about a web page. periodt.
β¨ NAME β¨
mech-dump β dumps information about a web page π
πΈ VERSION πΈ
version 2.22 β yes she's got a version number, she's official, she's that girl π
π SYNOPSIS π
here's the whole mood, one line:
mech-dump [options] [file|url]
and now the options, all of them, no skips, no cuts, we're eating the whole plate π
--headersβ dump the HTTP response headers, the receipts at the top π¬--formsβ dump a table of the forms. this one is the default action, so if you just run her with no flags, this is the vibe you get β¨--linksβ dump a table of the links π--imagesβ dump a table of the images πΌοΈ--allβ dump all four of the above, in that exact order: headers, forms, links, images. the whole sampler platter, no cap π
--textβ dumps the textual part of the web page, just the words, no drama π
--user=userβ set the username π--password=passβ set the password π--cookie-file=filenameβ set the filename to use for persistent cookies, she likes to remember things πͺ
--agent=agentβ specify the UserAgent to pass, so you can be whoever you want to be on the internet π§--agent-alias=aliasβ specify the alias for the UserAgent to pass. pick exactly one of these, don't be greedy:Windows IE 6Windows MozillaMac SafariMac MozillaLinux MozillaLinux Konqueror
--absoluteβ show URLs as absolute, even if they're relative in the page. glow-up those links, make them fully qualified π--helpβ show this message. the classic, the icon, the one option that's in literally everything π«Ά
okay and here's the tea you genuinely cannot skip π₯
the order of the options you specify is relevant. repeated options get repeated dumps. so like, mech-dump --links --headers --links will actually give you links, then headers, then links again. she's listening. she's taking notes. she does what you say in the order you say it. main character energy fr fr.
mech-dump will only work on HTML documents when you're using it on remote URLs. but for local files, she just assumes any file you pass her is HTML. if it's not HTML? there won't be any usable results, bestie. nothing. not a crumb. π
Proxy settings are specified through the environment, like this:
http_proxy=http://proxy.my.place/
see LWP::UserAgent for the details on all that.
π SEE ALSO π
WWW::Mechanizeβ the mothership, the legend, the whole reason this exists π
π AUTHOR π
Andy Lester <andy at petdance.com> β the founder of this whole establishment π«‘
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2004 by Andy Lester.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie!! πβ¨ this was perl v5.40.1 and the date on her birth certificate says 2026-07-15 β go dump some web pages, absolute icon behavior, slay π
π¦
π¦ where this page comes from
- ubuntu stonking: libwww-mechanize-perl 2.22-1ubuntu1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms