Forum

Notifications
Clear all

need to copy historical data from this link

4 Posts
2 Users
0 Reactions
92 Views
(@abuthamer)
Posts: 2
New Member
Topic starter
 

How can I import the historical data as it is from this page  to excel automatically with this link:

https://www.tadawul.com.sa/wps/portal/tadawul/market-participants/issuers/issuers-directory/company-details/!ut/p/z1/04_Sj9CPykssy0xPLMnMz0vMAfIjo8zi_Tx8nD0MLIy83V1DjA0czVx8nYP8PI0MDAz0I4EKzBEKDEJDLYEKjJ0DA11MjQzcTfW99KPSc_KTIGZllJQUWKkaqBqUJKYklpfmqBroRyXn5xYk5lUGV-Ym5QMVGRsYGOuHEzK1IDsop6zSUREAVqe_kw!!/#chart_tab2

 I tried a lot using by using:  

Data >>New Query>>from other source >> from web page 

But the historical data for 30 days does not appear 
please any support.
thanks 
 
Posted : 15/10/2020 9:07 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Faha,

PQ won't be able to get that data because the data is generated by JavaScript and isn't stored in a <table> element on the page.

You'd need to use VBA to scrape the page for what you want.  These articles explain the process.

Web scraping with VBA

Web scraping multiple pages

Web scraping - Filling in forms

Regards

Phil

 
Posted : 15/10/2020 11:04 pm
(@abuthamer)
Posts: 2
New Member
Topic starter
 

Thanks a lot Philip. 

 
Posted : 16/10/2020 9:10 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

You're welcome.

 
Posted : 21/10/2020 9:10 am
Share: