epl homepage crawling question

Asked 2 years ago, Updated 2 years ago, 87 views

Please understand that I'm not good at taking pictures.

I want to extract the elements in match stat from the epl homepage, but when I try to get xpath about the path, I get tbody, but when I try to pull out the elements in it, I get an empty selector...

I'm trying to collect data because I'm studying machine learning, but I can't pull out the data, so time keeps going and I'm not making progress.I was using it as scrapy and selenium based on py27. How can I pull out the elements in there?

crawling

2022-09-22 19:37

1 Answers

Once the Stats tab is pressed

This page imports data through API and renders it later. Asynchronous communication fills the contents by receiving data on demand If you simply access the corresponding page URL, there are no elements selected by xpath yet.

It exists until (<table>. It doesn't have the contents.)

Logic will have to be added.

By the way, you'll have to pull out a lot of data to learn

I don't think I can access the API I wrote above directly... Hmm...

It's like a nosy thing, but I feel like crawling won't be able to meet the demand. You'll have to spin it for a long time.


2022-09-22 19:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.