Unable to get a html document that i can parse

25 views
Skip to first unread message

Jainil Trivedi

unread,
Oct 28, 2022, 1:38:49 PM10/28/22
to beautifulsoup
I am trying to get strike price form the link:

However i am not able to request directly.

So, I used scraperapi to request.

Now, the porblem is that when I pass the response to BesutifulSoup(res,'html.parser')
I get just the string version of response. I am not able to parse the data
 I have also uploaded the photo.


My code is:
import requests as req
urlLink = 'https://www1.nseindia.com/marketinfo/companyTracker/mtOptionKeys.jsp?companySymbol=AARTIIND&indexSymbol=NIFTY&series=EQ&instrument=OPTSTK&date=-'

r = requests.post( url = 'http://async.scraperapi.com/jobs', json={ 'apiKey': '1997afd6a3deaa58f1839aa72fd7e0f5', 'url': urlLink })
print(r.text)

r.close()



Any suggestions>

Screenshot 2022-10-28 225810.png
Reply all
Reply to author
Forward
0 new messages