Add connect retry control
modify namespace
code alignment, break if can't open url
give up unstable regex
add try-catch to avoid program crash, need to log error...