I have used your nice dll in a simple query program that lookup italian city pages on the italian wiki and donwload information about that (I need the data for a geography project).
The following code worked just fine with the first cities in my list, but then I noticed I get an error on Page.Load (server error 400) in some pages:
Site site = new Site("http://it.wikipedia.org", username, pwd);
Page p = new Page(site, cityName);
(try for example as cityName "Aci_Sant%27Antonio")
May it be because of the number of queries from a single IP (but I doubt that, italian cities are just 8000 and I seem to get the error with "specific" cities)?
Any hints would be very appreciated,
Pages titles are url-encoded inside Load() function, they must not be encoded befor that. This is likely a cause of a problem.
Here it must be:
Page p = new Page(site, "Aci Sant'Antonio"); // not "Aci_Sant%27Antonio"
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.