Как сграббить ссылку с письмом из почтовика?



  • Как взять ссылку https://site.com/mail.cf/nik/9f0f2ca231a52488ac2634ce8fca0164 со страницы:

    <div id="email-table"><a href="https://site.com/mail.cf/nik/f6bddf718303f13d39e3550392fd4325" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">noreply@info.submt.com</div><div class="e7m subj_div_45g45gg">You’re 4 steps away from a complete profile</div><div class="e7m time_div_45g45gg">2019-10-01 11:02:23</div></a><a href="https://site.com/mail.cf/nik/c6201baf77f63d48b143ad93b713746b" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">recommendations@explore.submt.com</div><div class="e7m subj_div_45g45gg">What's getting the most love on submit right now?</div><div class="e7m time_div_45g45gg">2019-10-01 04:32:21</div></a><a href="https://site.com/mail.cf/nik/55686137002417147e7d0cdcc6715bf8" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">recommendations@inspire.submt.com</div><div class="e7m subj_div_45g45gg">🔥 Cricut Hacks, Shabby Chic Homes and other search trends</div><div class="e7m time_div_45g45gg">2019-09-30 16:32:01</div></a><a href="https://site.com/mail.cf/nik/7366944da0267509a03cdf663c6d1620" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">noreply@info.submt.com</div><div class="e7m subj_div_45g45gg">A quick look at how submit works</div><div class="e7m time_div_45g45gg">2019-09-30 11:02:20</div></a><a href="https://site.com/mail.cf/nik/9f0f2ca231a52488ac2634ce8fca0164" class="e7m list-group-item waves-effect"><div class="e7m from_div_45g45gg">confirm@account.submt.com</div><div class="e7m subj_div_45g45gg">Please confirm your email</div><div class="e7m time_div_45g45gg">2019-09-29 23:57:07</div></a></div>
    


  • Кол-во писем во временной почте всегда разное, нужно отталкиваться от "Please confirm your email" . Почта confirm@account.submt.com присылает только линк для конфирма(новости сайта с другой почты приходят). Как будет выглядеть Xpath или регулярка по первому вхождению?



  • @revers said in Как сграббить ссылку с письмом из почтовика?:

    Как взять ссылку https://site.com/mail.cf/nik/9f0f2ca231a52488ac2634ce8fca0164 со страницы:

    <div id="email-table"><a href="https://site.com/mail.cf/nik/f6bddf718303f13d39e3550392fd4325" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">noreply@info.submt.com</div><div class="e7m subj_div_45g45gg">You’re 4 steps away from a complete profile</div><div class="e7m time_div_45g45gg">2019-10-01 11:02:23</div></a><a href="https://site.com/mail.cf/nik/c6201baf77f63d48b143ad93b713746b" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">recommendations@explore.submt.com</div><div class="e7m subj_div_45g45gg">What's getting the most love on submit right now?</div><div class="e7m time_div_45g45gg">2019-10-01 04:32:21</div></a><a href="https://site.com/mail.cf/nik/55686137002417147e7d0cdcc6715bf8" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">recommendations@inspire.submt.com</div><div class="e7m subj_div_45g45gg">🔥 Cricut Hacks, Shabby Chic Homes and other search trends</div><div class="e7m time_div_45g45gg">2019-09-30 16:32:01</div></a><a href="https://site.com/mail.cf/nik/7366944da0267509a03cdf663c6d1620" class="e7m list-group-item waves-effect list-group-item-success"><div class="e7m from_div_45g45gg">noreply@info.submt.com</div><div class="e7m subj_div_45g45gg">A quick look at how submit works</div><div class="e7m time_div_45g45gg">2019-09-30 11:02:20</div></a><a href="https://site.com/mail.cf/nik/9f0f2ca231a52488ac2634ce8fca0164" class="e7m list-group-item waves-effect"><div class="e7m from_div_45g45gg">confirm@account.submt.com</div><div class="e7m subj_div_45g45gg">Please confirm your email</div><div class="e7m time_div_45g45gg">2019-09-29 23:57:07</div></a></div>
    

    Стандартное действие "Получить сообщение" автоматически собирает ссылки в переменные


Log in to reply