SHARYA...eLinks(3pm)

πŸ“¦
version 0.77 Β· 2 versions
  • 0.77 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.77 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

okay bestie, so this is a Perl module and it lives in the 3pm manual section. Its whole entire job? Extract image links from HTML document. that's it, that's the gig. she's focused, she's efficient, she's an icon πŸ’…


✨ VERSION ✨

so this doc is describing version 0.77 of SHARYANTO::HTML::Extract::ImageLinks β€” and no, she's not a solo project, she comes from the Perl distribution SHARYANTO-Utils, dropped way back on 2015-09-04. vintage, but still serving 🌸


πŸ” SEE ALSO πŸ”

  • SHARYANTO β€” go look at her, she's the family 🫢

πŸŽ€ FUNCTIONS πŸŽ€

okay so this function does the thing: Extract image links from HTML document. literally her entire personality. 🌈

Either specify either url, html. β€” that's what the docs say, word for word, and honestly? she said what she said. 😭

πŸ“ Arguments ('*' denotes required arguments):

  • base => str β€” the base URL for images. like, where the pics are actually living.
  • html * => str β€” the HTML document to extract from. this one has the star, so she's REQUIRED, bestie, no skipping her ⭐

πŸ¦‹ What she gives back

she returns an enveloped result (an array). yes, an array. let me break it down for you because the layers go deep:

  1. First element (status) β€” an integer holding the HTTP status code. 200 means OK, 4xx means caller error, 5xx means function error. iykyk πŸ’€
  2. Second element (msg) β€” a string with the error message, or 'OK' if status is 200.
  3. Third element (result) β€” optional! this is the actual result, the prize, the main character πŸ‘‘
  4. Fourth element (meta) β€” called result metadata, also optional, a hash stuffed with extra information.

Return value: (any)

so like... anything. she's flexible. periodt. πŸ’…


🌐 HOMEPAGE 🌐

Please visit the project's homepage at <https://metacpan.org/release/SHARYANTO-Utils>. go say hi, she'd love that πŸ₯Ί


πŸ“¦ SOURCE πŸ“¦

Source repository is at <https://github.com/perlancar/perl-SHARYANTO-Utils>. the code lives there, no cap ✨


πŸ› BUGS πŸ›

Please report any bugs or feature requests on the bugtracker website <https://rt.cpan.org/Public/Dist/Display.html?Name=SHARYANTO-Utils>. she wants to hear from you, fr fr πŸ™ˆ

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. yes this is mandatory in spirit. bring receipts πŸ§ΎπŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

perlancar <perlancar@cpan.org> β€” the legend herself πŸ’œ


This software is copyright (c) 2015 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source, we love to see it 🌸


okay and one last thing bestie β€” this whole page? it's running on perl v5.34.0 and it got dated 2022-06-17. that's the footer energy, that's the whole vibe check βœ…βœ¨ bye ilysm πŸ«ΆπŸ’–
πŸ“¦ where this page comes from