0

This is a simple script for doing request using multiple threads. I got it from http://www.ibm.com/developerworks/aix/library/au-threadingpython/.

How to put all the html of each requested page into a varible. I tried with a global variable and it doesn't work.

Brana
  • 1,197
  • 3
  • 17
  • 38

1 Answers1

0

This is not the answer on your question, but i want to give you a little advice. You can use gevent library for your task. Your code will be simplier.

And first of all you should read this patterns. Threads in python are evil. :)

Ellochka Cannibal
  • 1,750
  • 2
  • 19
  • 31