How should I scrape this webpage https://www.bseindia.com/stock-share-price/asian-paints-ltd/asianpaint/500820/ and specifically need the ROE figure which is mentioned in the table.
I used following code in excel.
`Sub FetchData()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.bseindia.com/stock-share-price/asian-paints-ltd/asianpaint/500820/", Destination:=Range( _
"$A$1"))
.Name = "www"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
`
This is what I was able to fetch from it:
BSEINDIA
Group Websites
BSE STAR MF
BSE Institute Ltd
BSE SME Platform
BSE Startups
BSE Hi-Tech
BSE IPF
CDSL
ICCL
India INX
India ICC
Marketplace Technologies
Members Portal
RGESS
BSE Sammaan
Notices | Media Release | Trading Holidays | BSEPlus | Payments to BSE | Contact us | FeedBack
Select Language
Hindi
Marathi
Gujarati
Group Websites
BSE STAR MF
BSE Institute Ltd
BSE SME Platform
BSE Startups
BSE Hi-Tech
BSE IPF
CDSL
ICCL
India INX
India ICC
Marketplace Technologies
Members Portal
RGESS
BSE Sammaan
BSEINDIA
S&P BSE SENSEX
{{HeaderData[0].ltp}}
{{HeaderData[0].chg}} {{HeaderData[0].perchg}}%
{{HeaderData[0].chg}} {{HeaderData[0].perchg}}%
{{HeaderData[0].dttm}} | OpenPre-openClose
Get Quote
×
BSE RSS
RSS stands for Really Simple Syndication. RSS feed is a XML file that provides summaries, including links to the full versions of the content.It is available through RSS feed reader or through some browsers. It will show you what's new since the last time you checked the feed, without having to visit the website.
BSE Notices RSS
This RSS feed allows you to stay up to date with the latest Notices updated on the site.
How to Subscribe this feed?
You can subscribe to this feed by using any of the following options:
If you have RSS reader, Please Cut and Paste the URL www.bseindia.com/data/xml/notices.xml in your RSS Reader.
Download any online RSS reader of your choice.
SENSEX RSS
This is an RSS feed from the Bombay Stock Exchange website. This RSS feeds allow you to stay up to date with the latest SENSEX values on continuous basis.
Subscribe to this feed
To subscribe to it, you will need a RSS Reader. You can subscribe to this RSS feed, Please Cut and Paste the URL www.bseindia.com/data/xml/sensexrss.xml in your RSS Reader
Close
×
High Lows
High Lows
52 Week High (adjusted) {{HLdata.Fifty2WkHigh_adj|number:2}}{{HLdata.Fifty2WkHigh_adjDt}}
52 Week Low (adjusted) {{HLdata.Fifty2WkLow_adj|number:2}}{{HLdata.Fifty2WkLow_adjDt}}
52 Week High (Unadjusted) {{HLdata.Fifty2WkHigh_unadj}}
52 Week Low (Unadjusted) {{HLdata.Fifty2WkLow_unadj}}
Month H/L {{HLdata.MonthHighLow}}
Week H/L {{HLdata.WeekHighLow}}
Close
×
Notification
{{notif.Disptxt}} {{notif.Date}}
Close
Equity
Derivatives
Debt / Others
SLB
Corp Announcements
Financials
Results
Annual Reports
Meetings
Board Meetings
Shareholders Meetings
Voting Results
Corp Actions
Shareholding Pattern
Unit Holding Pattern
Corporate Governance
Bulk / Block deals
Disclosures
Insider Trading 2015
Insider Trading 1992
SAST
Pledge
SAST - Annual Disclosure
Consolidated Pledge Data
Corp Information
Peer Group
Charting
Research Reports
Notices
Additional Info
Any suggestions/help on this, Need the ROE figure rest of it is not required.
Thanks!
I used following code in excel.
`Sub FetchData()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.bseindia.com/stock-share-price/asian-paints-ltd/asianpaint/500820/", Destination:=Range( _
"$A$1"))
.Name = "www"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
`
This is what I was able to fetch from it:
BSEINDIA
Group Websites
BSE STAR MF
BSE Institute Ltd
BSE SME Platform
BSE Startups
BSE Hi-Tech
BSE IPF
CDSL
ICCL
India INX
India ICC
Marketplace Technologies
Members Portal
RGESS
BSE Sammaan
Notices | Media Release | Trading Holidays | BSEPlus | Payments to BSE | Contact us | FeedBack
Select Language
Hindi
Marathi
Gujarati
Group Websites
BSE STAR MF
BSE Institute Ltd
BSE SME Platform
BSE Startups
BSE Hi-Tech
BSE IPF
CDSL
ICCL
India INX
India ICC
Marketplace Technologies
Members Portal
RGESS
BSE Sammaan
BSEINDIA
S&P BSE SENSEX
{{HeaderData[0].ltp}}
{{HeaderData[0].chg}} {{HeaderData[0].perchg}}%
{{HeaderData[0].chg}} {{HeaderData[0].perchg}}%
{{HeaderData[0].dttm}} | OpenPre-openClose
Get Quote
×
BSE RSS
RSS stands for Really Simple Syndication. RSS feed is a XML file that provides summaries, including links to the full versions of the content.It is available through RSS feed reader or through some browsers. It will show you what's new since the last time you checked the feed, without having to visit the website.
BSE Notices RSS
This RSS feed allows you to stay up to date with the latest Notices updated on the site.
How to Subscribe this feed?
You can subscribe to this feed by using any of the following options:
If you have RSS reader, Please Cut and Paste the URL www.bseindia.com/data/xml/notices.xml in your RSS Reader.
Download any online RSS reader of your choice.
SENSEX RSS
This is an RSS feed from the Bombay Stock Exchange website. This RSS feeds allow you to stay up to date with the latest SENSEX values on continuous basis.
Subscribe to this feed
To subscribe to it, you will need a RSS Reader. You can subscribe to this RSS feed, Please Cut and Paste the URL www.bseindia.com/data/xml/sensexrss.xml in your RSS Reader
Close
×
High Lows
High Lows
52 Week High (adjusted) {{HLdata.Fifty2WkHigh_adj|number:2}}{{HLdata.Fifty2WkHigh_adjDt}}
52 Week Low (adjusted) {{HLdata.Fifty2WkLow_adj|number:2}}{{HLdata.Fifty2WkLow_adjDt}}
52 Week High (Unadjusted) {{HLdata.Fifty2WkHigh_unadj}}
52 Week Low (Unadjusted) {{HLdata.Fifty2WkLow_unadj}}
Month H/L {{HLdata.MonthHighLow}}
Week H/L {{HLdata.WeekHighLow}}
Close
×
Notification
{{notif.Disptxt}} {{notif.Date}}
Close
Equity
Derivatives
Debt / Others
SLB
Corp Announcements
Financials
Results
Annual Reports
Meetings
Board Meetings
Shareholders Meetings
Voting Results
Corp Actions
Shareholding Pattern
Unit Holding Pattern
Corporate Governance
Bulk / Block deals
Disclosures
Insider Trading 2015
Insider Trading 1992
SAST
Pledge
SAST - Annual Disclosure
Consolidated Pledge Data
Corp Information
Peer Group
Charting
Research Reports
Notices
Additional Info
Any suggestions/help on this, Need the ROE figure rest of it is not required.
Thanks!