#C6447. Extract Book Information

    ID: 50208 Type: Default 1000ms 256MiB

Extract Book Information

Extract Book Information

You are given an HTML document representing a book’s webpage. The page may include a title, an author, and a price. The title is contained within an h1 element with the class book-title, the author in a span element with the class book-author, and the price in a span element with the class book-price. If any field is missing, output the string (\texttt{None}) for that field.

Your task is to extract these three pieces of information from the HTML document. Read the entire HTML content from standard input and print the extracted title, author, and price on three separate lines (in that order).

inputFormat

The input consists of a valid HTML document, possibly spanning multiple lines. Read the input from standard input.

outputFormat

The output should consist of three lines. The first line is the extracted book title, the second line is the extracted author, and the third line is the extracted price. For any element that does not exist in the HTML, print (\texttt{None}) in its place.## sample


  

The Great Gatsby

F. Scott Fitzgerald $10.99
The Great Gatsby

F. Scott Fitzgerald $10.99

</p>