refine WebExtract.cpp