Advertisement
Guest User

bydlowcode.pl

a guest
Apr 8th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.56 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use LWP::UserAgent;
  5. use HTTP::Request::Common;
  6.  
  7. my $profile = 'nickname';
  8. my $password = '123456';
  9.  
  10. my $ua = LWP::UserAgent->new();
  11. my $req = $ua->get("https://myanimelist.net/malappinfo.php?u=$profile&status=all&type=anime");
  12.  
  13. my @ids = $req->decoded_content() =~ m!<series_animedb_id>(\d+?)</series_animedb_id>!g;
  14.  
  15. for(@ids) {
  16.     my $del = POST "https://myanimelist.net/api/animelist/delete/$_.xml";
  17.     $del->authorization_basic($profile, $password);
  18.  
  19.     my $res = $ua->request($del);
  20.     print $res->as_string(), "\n";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement