Sibling monks, I humbly request guidance. I am making a news crawler, and I use LWP::Simple to get selected index pages from which I take links. But some of these pages use ASP, and I think that sometimes breaks stuff... or maybe it's something else. When I do
use LWP::Simple;
my $html = get 'http://www.iran-news.com/asp/view_iran.asp?Id=INTERNAT
+IONAL&id2=INTERNATIONAL00.jpg';
I get nothing. Even though cutting and pasting the link into the browser brings up a genuine page, and although
$html = get 'http://www.gulf-news.com/news/2001/1219/news_world.asp';
produces a page.
Can anybody tell me what I can do to make the first one work?
§
George Sherston
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.