review-scrapper / templates / results.html
results.html
Raw
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Review Page</title>

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">


      <link rel="stylesheet" href="./style.css">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">


</head>

<body>

  <div class="table-users">
     <div class="header">Product Details</div>

   <table cellspacing="0">
      <tr>
         <th>Product Name</th>
         <th>Link</th>
      </tr>
      <tr>
        <td>{{reviews[0]['Product Name']}}</td>
        <td>
            <a href="{{reviews[0]['Link']}}">Product Webpage</a>
        </td>
       </tr>
   </table>
   <br>
   <div class="header">Reviews</div>

   <table cellspacing="0">
      <tr>
{#         <th>Product</th>#}
         <th>Buyer Name</th>
         <th>Rating</th>
         <th>Comment Heading</th>
         <th width="230">Comments</th>
      </tr>
         {% for review in reviews %}
      <tr>
{#          <td>{{review['Product']}}</td>#}
         <td>{{review['Buyer Name']}}</td>
         <td>{{review['Rating']}}</td>
         <td>{{review['CommentHead']}}</td>
         <td>{{review['Comment']}} </td>
       {% endfor %}
   </table>
</div>



</body>

</html>