Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • thanx for the quick response. If I got 6 responses at the same time then how to use them with lxml to extract the data same time as they are going to be one by one in current scenario and put them on file concurrently. Commented Feb 18, 2014 at 17:46
  • Write the lxml processing together with downloading to that function called by parallel map. You can also write to a file there, but use a lock (docs.python.org/2/library/threading.html#lock-objects) to exclude parallel file writes. Commented Feb 18, 2014 at 17:50