Better HN
top
new
best
ask
show
jobs
Log in
Sign up
How to fetch URLs in parallel using Python | Better HN
How to fetch URLs in parallel using Python
(petewarden.typepad.com)
5 points · by
coderdude
· 16y ago · 4 comments
Comments
[–]
riobard
16y ago
Won't using multiple curl processes consume more resources than threads?
[–]
coderdude
OP
16y ago
Yes. However, I think how well this works depends on how many cores you have and how evenly you spread those processes across each core.
[–]
riobard
16y ago
If the goal is to fetch as many URLs as possible, the best bet seems to be using async epoll to simultaneously fetch tens of thousands links. Processes/threads consumes too much memory to be viable.
[–]
mumrah
16y ago
Seems like it would be easier to use xargs or GNU Parallel.