Change the logic on how to parse a web page

Parse main title from head title;Locate the title element, which is requried;
If title element is missing, halt;
Locate content element, identify from title parents;
Locate main element, identify from main descendant;
Identify paragraphs, judge from max tag in main.