开发者

Parsing several Internet pages simultaneously [duplicate]

开发者 https://www.devze.com 2023-03-25 10:45 出处:网络
This question already has answers here: Perl, how to fetch data from urls in parallel? (4 answers) Closed 9 years ago.
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

精彩评论

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