I am a beginner web scraping I am trying to get the phone number from this page. https://www.quickerala.com/listings?q=Healthcare&location=Alleppey
Under this element tag
<span data-qk-el-trackcontact="1" data-trackdata="{"business":"427151","address":"430820","number":"653252%6252%3252%553252%6252%3252%653252%6252%3252%843252%6252%3252%653252%6252%3252%553252%6252%3252%753252%6252%3252%843252%6252%3252%653252%6252%3252%753252%6252%3252%","type":"mobile","page":"businessListings"}" data-qk-el-unobfuscate="1" data-unobfuscate-text="653252%6252%3252%553252%6252%3252%653252%6252%3252%843252%6252%3252%653252%6252%3252%553252%6252%3252%753252%6252%3252%843252%6252%3252%653252%6252%3252%753252%6252%3252%">9809780878</span>
I can view the phone number "9809780878" but I am not sure how to get it.
I have tried
response.xpath('//div[@class="listContacts brtop-10"]//data-trackdata')
response.xpath('//span[@data-qk-el-trackcontact=1]/data-trackdata')
response.xpath('//span[@data-qk-el-trackcontact=1]').extract()
without any luck.
Mobile number is encrypted in the response in a specific area.
Though numbers are avialable in other area too. But in this solution I have focused on copy there(website)
decryption JS function and execute in our python scriptFind & copy their JS decryption function & excute using js4py
Rest of the code is what as usual
Output