开发者

Parsing several Internet pages simultaneously [duplicate]

This question already has answers here: Perl, how to fetch data from urls in parallel? (4 answers) Closed 9 years ago.

There is a list of (unrelated开发者_JS百科) Internet pages I'd like to load simultaneously. I wouldn't mind parsing the information itself page after page, but I thought to myself, that if my browser can load two and more pages simultaneously, why shouldn't Perl do that?

I'm afraid I couldn't find anything like that on the Internet, so I am asking you.

Thank you in advance.


Parallel::ForkManager is your friend. Tell it how many you want to do simultaneously and loop through your list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜