https://bugzilla.redhat.com/show_bug.cgi?id=1654664



--- Comment #11 from Xavier Bachelot <[email protected]> ---
Would a script massaging the HTML into a readable text file be ok ?

Something alike :
```
#!/usr/bin/perl

use warnings;
use strict;
use HTML::TreeBuilder;
use LWP::UserAgent;
use LWP::Protocol::https;
use HTML::Element;
use Text::Format;

my $tree =
HTML::TreeBuilder->new_from_url("https://developers.google.com/open-source/licenses/bsd";);
my $div = $tree->look_down(
  _tag => "div",
  class => qr/devsite-article-body.*/);
my $text = Text::Format->new (
  {
    columns    => 80,
    leftMargin => 0,
  }
);
foreach ( $div->descendants() ) { print $text->format( $_->as_text() )."\n"; };
$tree->delete;
```


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=1654664

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%201654664%23c11
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to