I have a website where from where i want to scrape coupon codes.I have two issues here.Am using python and beautifull soup here. 1)Some coupons displayed in span tag doesnt have class or id,so am not able to get coupons from these tags.i need to get from strong tag(AXISCB50)
<h6><span style="color: #808000">25% Cashback on Recharges :</span></h6>
<ul>
<li>Get 25% Cashback upto Rs.25 per transaction.</li>
<li>Coupon Code : <span style="color: #ff0000"><strong>AXISCB50</strong></span></li>
<li>Maximum 2 transaction per Debit/Credit card.</li>
</ul>
Is it possible to scrape by specifying style="color: #808000 something like this(style).
2)Some coupons are displayed via ajax which is displayed only once we click the button.How will i scrape_ these data which is displayed via script?
Am into webscraping for the first time.Any help is appreciated and thanks in advance.