title: How to correctly compare the current date with the date of the site (just the day) from which the publication is parsed with today's date?
body: <p>I need to parse exactly those publications where the publication date coincides with today's date. I only need to match the day. For example, 20 = 20. Here's what I did, but this is not good code:</p>
  <pre><code>today = date.today()
  d2 = today.strftime(&quot;%B %d, %Y&quot;)
  today_day = d2[8] + d2[9]
  
  for el in items:
      title = el.select('.card-stats &gt; div')
      p = title[1].text
      space = p.replace(&quot; &quot;,&quot;&quot;)
      day = space[1] + space[2]
      if day == today_day:
          data_id = el.get('data-id')
  </code></pre>
  <p><img src="https://i.stack.imgur.com/ZrS5x.png" alt="enter image description here" /></p>