I am trying to get all links, titles & dates in a specific month, like March on the website, I'm using BeautifulSoup to do so:
from bs4 import BeautifulSoup
import requests
html_link='https://www.pds.com.ph/index.html%3Fpage_id=3261.html'
html = requests.get(html_link).text
soup = BeautifulSoup(html, 'html.parser')
for link in soup.find_all('td'):
#Text contains 'March'
#Get the link title & link &date
I'm new to BeautifulSoup, in Selenium I used the xpath: "//td[contains(text(),'Mar')", how can I do this with BeautifulSoup?