I
I
Ivan2021-04-15 10:46:01
go
Ivan, 2021-04-15 10:46:01

How to get the text in the GO parser when it is inside a div, but besides it there is a lot of unnecessary stuff (details inside)?

Good afternoon. It is necessary to pull out the text "Kiev". When looking for a class list-jobs__details__info, a lot of superfluous.
City = s.Find(".list-jobs__details__info").Text()
Can't be thrown out. How to get only Kiev from there?

6077ef1ee5e40306191802.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2021-04-15
@Djonson86

City = s.Find(".list-jobs__details__info > .icon-location").Text()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question