MECH-DUMP(1)

πŸ’– NAME πŸ’–

okay so welcome to the MECH-DUMP(1) page from User Contributed Perl Documentation, bestie πŸ’– this whole thing is about mech-dump β€” it dumps information about a web page, and yes it ate.

πŸŽ€ VERSION πŸŽ€

This page is version 2.19, periodt.

✨ SYNOPSIS ✨

The call looks like this:

mech-dump [options] [file|url]

Options:

  • --headers β€” dump HTTP response headers.
  • --forms β€” dump a table of forms. This is the default action, iykyk.
  • --links β€” dump a table of links.
  • --images β€” dump a table of images.
  • --all β€” dump all four of the above, in that order.
  • --text β€” dump the textual part of the web page.
  • --user=user β€” set the username.
  • --password=pass β€” set the password.
  • --cookie-file=filename β€” set the filename to use for persistent cookies.
  • --agent=agent β€” specify the UserAgent to pass.
  • --agent-alias=alias β€” specify the alias for the UserAgent to pass. Pick one of:
    • Windows IE 6
    • Windows Mozilla
    • Mac Safari
    • Mac Mozilla
    • Linux Mozilla
    • Linux Konqueror
  • --absolute β€” show URLs as absolute, even if they’re relative in the page.
  • --help β€” show this message.

Real talk: the order of the options specified is relevant. Repeated options get repeated dumps.

When used on remote URLs, mech-dump will only work on HTML documents, but it will assume any local file you pass it is HTML. If it is not, there won’t be any usable results.

Proxy settings are specified through the environment (e.g. http_proxy=http://proxy.my.place/). See LWP::UserAgent for details.

πŸ”₯ SEE ALSO πŸ”₯

WWW::Mechanize β€” that’s the one, bestie.

πŸ‘‘ AUTHOR πŸ‘‘

Andy Lester <andy at petdance.com>.

The official legal tea β˜•:

This software is copyright (c) 2004 by Andy Lester.

And for real:

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

okay bye bestie, go dump some pages πŸ’… this page is from perl v5.42.0, dated 2024-09-17, and it’s the MECH-DUMP(1) manual. mwah πŸ’‹

πŸ“¦ where this page comes from