Im trying to read this link content via beautifulsoup and then trying to fetch article dates present in span.f
import requests
import json
from bs4 import BeautifulSoup
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36'}
from selenium import webdriver
link="https://www.google.com/search?q=replican+party+announced&ie=utf-8&oe=utf-8&client=firefox-b"
browser=webdriver.Firefox()
browser.get(link)
s=requests.get(link)
soup5 =BeautifulSoup(s.content,'html.parser')
Now i want to fetch all the article dates present in <span class="f">Apr 27, 2018 - </span>
along with their corresponding "link URL"
But this code aint fetching anything for me
for i in soup5.find_all("div",{"class":"g"}):
print (i.find_all("span",{"class":"f"}))