Why can't I fetch wikipedia pages with LWP::Simple?

前端 未结 5 800
我在风中等你
我在风中等你 2021-01-11 16:52

I\'m trying to fetch Wikipedia pages using LWP::Simple, but they\'re not coming back. This code:

#!/usr/bin/perl
use strict;
use LWP::Simple;

print get(\"ht         


        
5条回答
  •  时光说笑
    2021-01-11 17:35

    Also see the Mediawiki related CPAN modules - these are designed to hit Mediawiki sites (of which wikipedia is one) and might give you more bells and whistles than simple LWP.

    http://cpan.uwinnipeg.ca/search?query=Mediawiki&mode=dist

提交回复
热议问题