I am trying to scrape this link : https://www.axisbank.com/retail/cards/credit-card
Using the following code
from urllib.request import urlopen
from bs4 import BeautifulSoup
import json, requests, re
axis_url = ["https://www.axisbank.com/retail/cards/credit-card"]
html = requests.get(axis_url[0])
soup = BeautifulSoup(html.content, 'lxml')
for d in soup.find_all('span'):
print(d.get_text())
Output :
close
5.15%
%
4.00%
%
5.40%
Basically I want to get the details of each and every card present in that page
I have tried different tags but none of them seems to be working out.
I'd be happy to see the code that satisfies my requirement.
Any help is highly appreciated.