Home » Source Code » Thread programming using Python

Thread programming using Python

2014-07-23 22:58:43
The author
Download(s): 0
Point (s): 1 
Category Category:
MutithreadMutithread PythonPython


Add another instance of the queue, the queue is then passed to the first thread pool class ThreadURL. Then, for another thread pool class DatamineThread, copied almost exactly the same structure. In the run method in this class, get Web pages from each thread in the queue, blocks of text, then uses Beautiful Soup this text block. In this example, uses Beautiful Soup to extract each page's title tag, and print output. Can easily extend this example to the scenarios some more valuable, because you have mastered the basic core content search engines or data-mining tools. One idea is to use Beautiful Soup extract links from every page, and then follow them for navigation.
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.96 kB
BeautifulSoup.py74.57 kB2008-05-14 14:52
01.96 kB
01.96 kB
._BeautifulSoup.py285.00 B2008-05-14 14:52
hello_threads.py298.00 B2008-05-13 13:20
url_fetch_serial.py363.00 B2008-05-13 23:49
url_fetch_threaded.py1.10 kB2008-05-14 08:30
url_fetch_threaded_part2.py1.89 kB2008-05-14 15:24
Sponsored links


(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

Thread programming using Python (23.38 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D