Написать XPATH запрос.

Заказать скрипт
  • Нужно написать XPATH запрос. Пишите в личку по цене.
    Загружаю https://www.youtube.com/results?search_query=music
    Пытаюсь с помощью кубика XPATH

    //h3[@class='title-and-badge style-scope ytd-video-renderer']
    

    найти строку

             <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" title="Best songs to boost your mood ~ Chill vibes 🎵 Chill out music mix playlist" href="/watch?v=E4KMnaOF7lU" aria-label="Best songs to boost your mood ~ Chill vibes 🎵 Chill out music mix playlist by Chilled Feelings 14 hours ago 56 minutes 42,032 views">
    

    находит только
    1.jpg

    Как изменить XPATH чтоб находил в выдаче все элементы и чтоб в каждом было сразу title="" href="" aria-label=""
    и желательно чтоб ставил между ними разделитель, например такой @@@ .

    Должно получится что-то вроде этого: Best songs to boost your mood ~ Chill vibes 🎵 Chill out music mix playlist @@@ /watch?v=E4KMnaOF7lU @@@ Best songs to boost your mood ~ Chill vibes 🎵 Chill out music mix playlist by Chilled Feelings 14 hours ago 56 minutes 42,032 views

  • Check PM

  • I contacted this person over PM and provided him with
    solution. Wrote that XPATH as single query that grabs all
    required data from entire page and saves it as list of values.

    But he is not sending any money for more than 24h later.

    So I suspect he is just another scammer.

    @Fox
    I can provide PM conversation if needed, or you
    can check for yourself if possible.

    He is not responding to PM any more.
    The money involved is minor,
    so just BAN him or whatever is suitable
    in this situation,

  • @GaG said in Написать XPATH запрос.:

    I contacted this person over PM and provided him with
    solution. Wrote that XPATH as single query that grabs all
    required data from entire page and saves it as list of values.

    But he is not sending any money for more than 24h later.

    So I suspect he is just another scammer.

    @Fox
    I can provide PM conversation if needed, or you
    can check for yourself if possible.

    He is not responding to PM any more.
    The money involved is minor,
    so just BAN him or whatever is suitable
    in this situation,

    https://community.bablosoft.com/topic/13665/disclaimer

    https://community.bablosoft.com/topic/13666/отказ-от-ответственности

  • делаешь три списка
    //a[@id="video-title"]/@title
    //a[@id="video-title"]/@href
    //a[@id="video-title"]/@aria-label

    И собирай в цикле как душе угодно.

  • My sollution >

    You have to execute it in "Xpath Get Text List" cube

    // a [@ id = 'video-title'] / @ * [name () = 'title' or name () = 'href' or name () = 'aria-label']