title: How to structure search result ranking data in Python?
body: <p>What's the "best" way to structure scraped search result data in a Python? This will need to be stored so I can create graphs / plot trends for keyword ranking movement over time:</p>
  
  <ul>
  <li>keyword</li>
  <li>date/time of scraping round</li>
  <li>total number of search results found</li>
  <li>search result data (#1, #2, #3, etc.)</li>
  </ul>
  
  <p>I'm thinking the following:</p>
  
  <pre><code>data = { 'keyword' : keyword,
            { 'datetime' : time.time(),
               { 'totalresults' : totalresults,
                 '1': { 'title' : title, 'url' : url },
                 '2': { 'title' : title, 'url' : url },
                 '3': { 'title' : title, 'url' : url }
               }
            }
          }
  </code></pre>
  
  <p>Not sure if it's relevant, but I haven't used databases in projects yet. Some projects I've had developed use MongoDB, so I'll probably use that since I can peek in the code of these projects to see how things are done.</p>