How to get the color option text of this page?

jackeyroe1

Client
Регистрация
17.10.2013
Сообщения
218
Благодарностей
50
Баллы
28
Hi friends :-)

I encountered a problem,

I tried to scrape some basic information on this page: https://www.shoessee.com/products/vintage-flat-toe-sandals-2359186.html

Please refer to my screenshot, there are 4 color option "Black" "Red" "Green" "Brown", when click the option page, the text changed in turn.

I want to get the option text into this format: Black, Red, Green, Brown

But I searched the DOM of this page, the option text not display together in it, only when I click the option image, the text shown, for example, I click the black one image, the text show me "Black", I click the red one, the text show me "Red", but I couldn't get these 4 color text together by the DOM.

Is there any friend can help me? Tell me how to get these 4 elements text together?



Big thanks !!! :-)
 

Вложения

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Dom always display all data what is on-page, this is wh its DOM :-)
You open the page and then compy all DOM text to regex designer, then personally I copy all that text into notepad and dig in, while I find how to regex my needed data.
After a little searching in DOM I was able to construct this:

59853
 
  • Спасибо
Реакции: jackeyroe1

jackeyroe1

Client
Регистрация
17.10.2013
Сообщения
218
Благодарностей
50
Баллы
28
Dom always display all data what is on-page, this is wh its DOM :-)
You open the page and then compy all DOM text to regex designer, then personally I copy all that text into notepad and dig in, while I find how to regex my needed data.
After a little searching in DOM I was able to construct this:
WOW!!! Great!!! Thank you very much!!! :-)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)