Possible Duplicate:
Multithreading a large number of web requests in c#
I am working on a scraper and it has to scrape about 12000 pages from a website. Right now I only get 1500 pages an hour which is too slow.
I wanted to know how I can request 10 pages at once rather than 1?
private void backgroundWorker1_DoWork(object sender,
DoWorkEventArgs e)
{
//Page IDs - Start request loops
for (int i = 0; i < 12000; i++)
{
Get(url + i);
}
}
An example on the code will be great
Thanks!