0

Boilerpipe allows to extract just the article's text from webpage, cleaning up all the HTML mess. However, how could I extract article's headline? There is a a way to just use page's title, but it is sometimes incorrect and contains unneeded words(e.g. "title - sitename").

Another idea is to find text between <h1> and </h1>, but I still thought I would ask some more solutions.

Gintas_
  • 4,940
  • 12
  • 44
  • 87

1 Answers1

0

Are you writing a web crawler? I think the difficulty is that you need to know where the title is in a whole html. For most website they have a unique pattern for writing html, it should be known before the crawler being written.

Daisy Li
  • 54
  • 6