Julien Hodrea
Julien Hodrea

Reputation: 41

I'm trying to scrap Stocks Data , Get requests method is working but is not giving data

First of all, Thank you for your help.

I'm trying to create a stock data scraper based on the Frankfurt website.

I'm trying to get the historical prices section of the website.

I inspected the elements with chrome and I found an API in the network section. enter image description here

Here is the response and preview on the network section. enter image description here enter image description here

I tried to use the code below : enter image description here

When I run my script : enter image description here

The code response seems good, but there is nothing in return.

I also tried to use BeautifulSoup to get my ways but I can't find where is located the data.

Here is what I tried : enter image description here

Thank you for your time!

Upvotes: 1

Views: 122

Answers (1)

Whitney Liao
Whitney Liao

Reputation: 70

The reason why that the resquest return nothing is because that the data you want to scrape are rendered by javascript. So first check out if the web data are rendered by javascript, if it is, try to use selenium or puppeteer to get those data.

Upvotes: 1

Related Questions