title: GoogleNews date range
body: <p>I am trying to build a tool to pull news articles mentioning a key word in the text body but cannot get the date range to work.</p>
  <p>Ideally I only want to view articles in the past 24 hours so I am using this:</p>
  <pre class="lang-py prettyprint-override"><code>googlenews=GoogleNews(period='1d')
  </code></pre>
  <p>However in my DataFrame results I am getting fields in the date column like &quot;3 weeks ago&quot;, &quot;1 month ago&quot; etc</p>
  <p>perhaps a solution would be to specify where the date is &lt;today() and then drop the lines where the text contains &quot;week&quot;, &quot;weeks&quot;, &quot;month&quot;, &quot;months&quot; etc.</p>
  <pre><code>from GoogleNews import GoogleNews
  from newspaper import Article
  import pandas as pd
  
  search_term = &quot;Binoculars&quot;
  
  googlenews=GoogleNews(period='1d')
  googlenews=GoogleNews(lang='en', region='US')
  googlenews.search(search_term)
  
  results = []
  
  final_results = []
  
  for page in range(1,5):
   googlenews.getpage(page) 
   results.extend(googlenews.result())
  
  for item in results: 
   if (item not in final_results and (search_term in item[&quot;desc&quot;])):
       final_results.append(item)
  else:
      pass
  
  df=pd.DataFrame(results)
  df
  </code></pre>