Регулярка ссылки с Яндекс

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Что-то подвис, не могу написать регулярку, чтобы вырезала ссылки страниц сайтов в выдачи Яндекс.
Вырезается помимо нужных урлов еще и домены и другое:

Вот ссылка на выдачу к примеру: https://yandex.ru/yandsearch?text=шпилька м8&lr=51&msid=1507233190.00093.22863.6200&mlid=1507232731.glob_225.8191a251&rstr=-1&p=0&redircnt=1507233193.1

Получается вырезать все подряд ссылки, а мне нужны только на страницы.


Кто поможет?
 
Последнее редактирование:

doc

Client
Регистрация
30.03.2012
Сообщения
8 684
Благодарностей
4 641
Баллы
113
ты не думал в искомое запихать запись по длиннее, чем просто http?
 

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18

doc

Client
Регистрация
30.03.2012
Сообщения
8 684
Благодарностей
4 641
Баллы
113
я подумал, что ты вверху привёл пример нужной ссылки. Хочешь помощь - покажи нужный хтмл код. Не заставляй людей идти в яндекс, делать запрос, анализировать всю страницу.
Это вообще такое правило скорой помощи. Хочешь чтобы быстрее помогли - максимально упрости задачу
 

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Вот кусок кода, из которого нужно вырезать 2 ссылки:
https://olmi-connect.ru/product/shpilka-m8/
и
https://www.avito.ru/moskva?q=шпильки м8

Код:
_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 0px;"></i></span><b class="needsclick">Шпилька</b> <b class="needsclick">М</b><b class="needsclick">8</b> - купить по выгодной цене</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507231270973230504"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507231270973230505" tabindex="-1" rel="noopener" target="_blank" href="https://olmi-connect.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1565.Ld5oXxRUButXyb2QZKQTrgFc2AztPx8a68G4BhzulOXja8Juqpsk6vBFKHHbdvjj.818a24f915853d5e51271ae8c5170cd50ecf6150&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_WC5IbL5gF2nA55R7BZzfUbx-UGhzxgeV&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmaMDX1kvP4e1KSxKJmPDHJHx_8-uo-JJLWsk-89eBHbmvHNE98-YH83ysCklUzm4Ax072rAAaAfNtLdMI-f3VgyIRaFgLNC4TCBOyjC8ML9huny5nC2k6koP1Kw69-Q5LinNqk6GL2CR2vPvKvGdtcw1JLGJEeCWJbn7W0uOZe-ypvUwn5_wwPLMCaxv8j7WqvYAKveFfuP0AzRwUmUgoTpU81oZQ6t3MHy83MbcTOAPLXmyFlv1ukCCwB7xC94bFyrqQDObTgeJePLW50_I8CwdCDDEZ33H1y9ad6Zg3IEL1EfokgxDND2UVCULuk2TDHXnsnlkYTSeK-TR98ABYNkz94kflB6YEYCfeAAn8IoVb9Tat1hwsVWVkaPfCZee7qkWQgiczuoj9QEm3vtsv-1Ebj0Qgj7LixFRCTVHqKcZAcdc1dA4wVsKdEOHJLXFFB-ngK-I8AN25UXRMjq5q5Rm0I8eZ3jvMH6a_6esvGL_i7nLSv9vYCbFuKSE4F-R3Gf4vHDRacB5t4CaIey5YYGtc_YgL724Ackm8LLuEu87DBtWEr4Vrcs,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUERrT2dsVExfRVNTbTIxRUkxXzd6b3J1NkZRQjJCN0RpTTl6MExlTjNVaG1yWDhuYlBYZEJ0bWxVeElzWG1wZU9uQndQLXUwZncyTG9GUUQyUHU0Qlks&amp;sign=e1e10b573a8c938adcd36e99e698f728&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>olmi-connect.ru</b></a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507231270973230506" tabindex="-1" rel="noopener" target="_blank" href="https://olmi-connect.ru/product/shpilka-m8/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1565.Ld5oXxRUButXyb2QZKQTrgFc2AztPx8a68G4BhzulOXja8Juqpsk6vBFKHHbdvjj.818a24f915853d5e51271ae8c5170cd50ecf6150&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_H30U4EFIsvA6RXKqTlM_Vn9a4EJkMcyh&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmaMDX1kvP4e1KSxKJmPDHJHx_8-uo-JJLWsk-89eBHbmvHNE98-YH83ysCklUzm4Ax072rAAaAfNtLdMI-f3VgyIRaFgLNC4TCBOyjC8ML9huny5nC2k6koP1Kw69-Q5LinNqk6GL2CR2vPvKvGdtcw1JLGJEeCWJbn7W0uOZe-ypvUwn5_wwPLMCaxv8j7WqvYAKveFfuP0AzRwUmUgoTpU81oZQ6t3MHy83MbcTOAPLXmyFlv1ukCCwB7xC94bFyrqQDObTgeJePLW50_I8CwdCDDEZ33H1y9ad6Zg3IEL1EfokgxDND2UVCULuk2TDHXnsnlkYTSeK-TR98ABYNkz94kflB6YEYCfeAAn8IoVb9Tat1hwsVWVkaPfCZee7qkWQgiczuoj9QEm3vtsv-1Ebj0Qgj7LixFRCTVHqKcZAcdc1dA4wVsKdEOHJLXFFB-ngK-I8AN25UXRMjq5q5Rm0I8eZ3jvMH6a_6esvGL_i7nLSv9vYCbFuKSE4F-R3Gf4vHDRacB5t4CaIey5YYGtc_YgL724Ackm8LLuEu87DBtWEr4Vrcs,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUERrT2dsVExfRVNTbTIxRUkxXzd6cHg2TFkzdHh5R25CZkRzSmR5SU15MkdwY3lURGhwNHYxNTMzUjFZc2dtelJkU3NFblo1alctNDRBMV9lbzZCdjQzMEVkMWFvUzVQTWRDdXdHWnNYbTBveXJ2SmZZM1JYVSw,&amp;sign=19c956def91bbd99ee7d90fd93f43d5f&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">product/shpilka-m8/</a></div><div class="extralinks i-bem" data-bem="{&quot;extralinks&quot;:{}}"><div class="popup2 popup2_target_anchor popup2_autoclosable_yes popup2_theme_normal extralinks__popup i-bem popup2_js_inited" data-bem="{&quot;popup2&quot;:{&quot;directions&quot;:[&quot;bottom-center&quot;]}}"><a class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://hghltd.yandex.net/yandbtm?fmode=inject&amp;url=https%3A%2F%2Folmi-connect.ru%2Fproduct%2Fshpilka-m8%2F&amp;tld=ru&amp;lang=ru&amp;la=1506898432&amp;tm=1507233193&amp;text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;l10n=ru&amp;mime=html&amp;sign=69ed3107219c13659b88e3f9eaaf0bb9&amp;keyno=0" data-counter="[&quot;w&quot;,&quot;80.22.362&quot;,&quot;84=85,-source=web&quot;]">Сохранённая копия</a><a class="link link_click-propagation_no link_pseudo_yes link_ajax_yes link_theme_pseudo typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" tabindex="0" href="/search/?text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;lr=51&amp;msid=1507233190.00093.22863.6200&amp;rstr=-1&amp;noreask=1&amp;site=olmi-connect.ru" data-counter="[&quot;w&quot;,&quot;80.22.336&quot;,&quot;84=85,-source=web&quot;]">Показать ещё с сайта</a><span class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s show-feedback i-bem" data-bem="{&quot;link&quot;:{},&quot;show-feedback&quot;:{&quot;abuseLink&quot;:&quot;https://yandex.ru/search/abuse?sign=00b02dc77cdd67dbacc1dd33751ee107&amp;keyno=0&quot;,&quot;reqid&quot;:&quot;1507233193132251-463017909532795172519818-sas1-5453&quot;}}" rel="noopener" target="_blank" tabindex="0" role="button" data-counter="[&quot;w&quot;,&quot;80.22.1436&quot;,&quot;689=1086,84=85,-source=web&quot;]">Пожаловаться</span></div></div></div><div class="organic__content-wrapper clearfix"><div class="text-container typo typo_text_m typo_line_m organic__text"><b>Шпилька</b> <b>М</b><b>8</b>. Доставка по РФ, самовывоз в <b>Москве</b>.&nbsp;<b class="organic__passage">... </b>В этом случае стоимость доставки будет рассчитываться как стоимость <wbr>доставки по <b>Москве</b> или <b>Московской</b> <b>области</b> (если ТК находится за <wbr>пределами МКАД).</div></div></div></li><li class="serp-item t-construct-adapter__legacy" data-cid="2" data-log-node="uniq1507231270973230507"><div class="organic typo typo_text_m typo_line_s"><h2 class="organic__title-wrapper typo typo_text_l typo_line_m"><div class="a11y-hidden">2</div><a class="link link_theme_normal organic__url link_cropped_no i-bem" data-bem="{&quot;link&quot;:{}}" accesskey="2" tabindex="2" data-beacon="" data-log-node="uniq1507231270973230508" rel="noopener" target="_blank" href="https://www.avito.ru/moskva?q=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B8%20%D0%BC8" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1565.Ld5oXxRUButXyb2QZKQTrgFc2AztPx8a68G4BhzulOXja8Juqpsk6vBFKHHbdvjj.818a24f915853d5e51271ae8c5170cd50ecf6150&amp;uuid=&amp;state=PEtFfuTeVD5kpHnK9lio9XPOnieP7YQBovzVqj9ang0YEepmskggOQ,,&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmaMDX1kvP4e1KSxKJmPDHJHx_8-uo-JJLWsk-89eBHbmvHNE98-YH83ysCklUzm4Ax072rAAaAfNtLdMI-f3VgyIRaFgLNC4TCBOyjC8ML9huny5nC2k6koP1Kw69-Q5LinNqk6GL2CR2vPvKvGdtcw1JLGJEeCWJbn7W0uOZe-ypvUwn5_wwPLMCaxv8j7WqvYAKveFfuP0AzRwUmUgoTpU81oZQ6t3MHy83MbcTOAPLXmyFlv1ukCCwB7xC94bFyrqQDObTgeJePLW50_I8CwdCDDEZ33H1y9ad6Zg3IEL1EfokgxDND2UVCULuk2TDHXnsnlkYTSeK-TR98ABYNkz94kflB6YEYCfeAAn8IoVb9Tat1hwsVWVkaPfCZee7qkWQgiczuoj9QEm3vtsv-1Ebj0Qgj7LixFRCTVHqKcZAcdc1dA4wVsKdEOHJLXFFB-ngK-I8AN25UXRMjq5q5Rm0I8eZ3jvMH6a_6esvGL_i7nLSv9vYCbFuKSE4F-R3Gf4vHDRacB5t4CaIey5YYGtc_YgL724Ackm8LLuEu87DBtWEr4Vrcs,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dms5X2ZPVE5mY2NVb1dPZVZQOFU4MTJUR0RzUURONHhWZUJha3o5R1Vjck45QjlWdHBmWU5WVFN0NG5xQ2tIR1M4S2pscXRJaFNuYXRSRjh6Nld6MVFINlNvQ0tzZHE1YVNaMWFlX2UtU3h1NnpLd25lb3V3eEhYUy1Ec0ZkY3VZTE1SRzRmYTFPdEpQSWJiMXNTblRmaE1jYlo5QnN6SGtiT2VqVWdGVWZHOVQzTlhJb21RRXJhWlltN2dUUnR6TSw,&amp;sign=203f97dce0909e151b27c619fdcaf14f&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 -16px;"></i></span><b class="needsclick">шпильки</b> <b class="needsclick">м</b><b class="needsclick">8</b> - Доска объявлений от частных лиц...</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507231270973230509"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507231270973230510" tabindex="-1" rel="noopener" target="_blank" href="https://www.avito.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1565.Ld5oXxRUButXyb2QZKQTrgFc2AztPx8a68G4BhzulOXja8Juqpsk6vBFKHHbdvjj.818a24f915853d5e51271ae8c5170cd50ecf6150&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_PN27SaXvvNSrjOss3Xh6TRkVp9nw1WgJ&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmaMDX1kvP4e1KSxKJmPDHJHx_8-uo-JJLWsk-89eBHbmvHNE98-YH83ysCklUzm4Ax072rAAaAfNtLdMI-f3VgyIRaFgLNC4TCBOyjC8ML9huny5nC2k6koP1Kw69-Q5LinNqk6GL2CR2vPvKvGdtcw1JLGJEeCWJbn7W0uOZe-ypvUwn5_wwPLMCaxv8j7WqvYAKveFfuP0AzRwUmUgoTpU81oZQ6t3MHy83MbcTOAPLXmyFlv1ukCCwB7xC94bFyrqQDObTgeJePLW50_I8CwdCDDEZ33H1y9ad6Zg3IEL1EfokgxDND2UVCULuk2TDHXnsnlkYTSeK-TR98ABYNkz94kflB6YEYCfeAAn8IoVb9Tat1hwsVWVkaPfCZee7qkWQgiczuoj9QEm3vtsv-1Ebj0Qgj7LixFRCTVHqKcZAcdc1dA4wVsKdEOHJLXFFB-ngK-I8AN25UXRMjq5q5Rm0I8eZ3jvMH6a_6esvGL_i7nLSv9vYCbFuKSE4F-R3Gf4vHDRacB5t4CaIey5YYGtc_YgL724Ackm8LLuEu87DBtWEr4Vrcs,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dGNwa0k4MTQ3TWkzTXdvQTVPdTB5VEk1RlNLV0VndElkNTZqMER3UjVZd3NWcVc3eGxrYnFZ&amp;sign=e5057a2ffd17eb56c98d3d3e1fb82689&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>avito.ru</b></a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507231270973230511" tabindex="-1" rel="noopener" target="_blank" href="https://www.avito.ru/moskva?q=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B8%20%D0%BC8" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1565.Ld5oXxRUButXyb2QZKQTrgFc2AztPx8a68G4BhzulOXja8Juqpsk6vBFKHHbdvjj.818a24f915853d5e51271ae8c5170cd50ecf6150&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_xe6zfTZA2L39I_pdoHWlT5dsliJOD6Z-&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmaMDX1kvP4e1KSxKJmPDHJHx_8-uo-JJLWsk-89eBHbmvHNE98-YH83ysCklUzm4Ax072rAAaAfNtLdMI-f3VgyIRaFgLNC4TCBOyjC8ML9huny5nC2k6koP1Kw69-Q5LinNqk6GL2CR2vPvKvGdtcw1JLGJEeCWJbn7W0uOZe-ypvUwn5_wwPLMCaxv8j7WqvYAKveFfuP0AzRwUmUgoTpU81oZQ6t3MHy83MbcTOAPLXmyFlv1ukCCwB7xC94bFyrqQDObTgeJePLW50_I8CwdCDDEZ33H1y9ad6Zg3IEL1EfokgxDND2UVCULuk2TDHXnsnlkYTSeK-TR98ABYNkz94kflB6YEYCfeAAn8IoVb9Tat1hwsVWVkaPfCZee7qkWQgiczuoj9QEm3vtsv-1Ebj0Qgj7LixFRCTVHqKcZAcdc1dA4wVsKdEOHJLXFFB-ngK-I8AN25UXRMjq5q5Rm0I8eZ3jvMH6a_6esvGL_i7nLSv9vYCbFuKSE4F-R3Gf4vHDRacB5t4CaIey5YYGtc_YgL724Ackm8LLuEu87DBtWEr4Vrcs,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dms5X2ZPVE5mY2NVb1dPZVZQOFU4MTJUR0RzUURONHhWZUJha3o5R1Vjck45QjlWdHBmWU5WVFN0NG5xQ2tIR1M4S2pscXRJaFNuYXRSRjh6Nld6MVFINlNvQ0tzZHE1YVNaMWFlX2UtU3h1NnpLd25lb3V3eEhYUy1Ec0ZkY3VZTE1SRzRmYTFPdEpQSWJiMXNTblRmaE1jYlo5QnN6SGtiT2VqVWdGVWZHOVQzTlhJb21RRXJhWlltN2dUUnR6TSw,&amp;sign=3bef713cd198d0697d6e61a8b83e438b&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">moskva?q=шпильки м8</a></div><div class="extralinks i-bem" data-bem="{&quot;extralinks&quot;:{}}"><div class="popup2 popup2_target_anchor popup2_autoclosable_yes popup2_theme_normal extralinks__popup i-bem popup2_js_inited" data-bem="{&quot;popup2&quot;:{&quot;directions&quot;:[&quot;bottom-center&quot;]}}"><a class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://hghltd.yandex.net/yandbtm?fmode=inject&amp;url=https%3A%2F%2Fwww.avito.ru%2Fmoskva%3Fq%3D%25D1%2588%25D0%25BF%25D0%25B8%25D0%25BB%25D1%258C%25D0%25BA%25D0%25B8%2520%25D0%25BC8&amp;tld=ru&amp;lang=ru&amp;la=1506760960&amp;tm=1507233193&amp;text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;l10n=ru&amp;mime=html&amp;sign=45e525e77205f46ce0b1e0c36a6b39ae&amp;keyno=0" data-counter="[&quot;w&quot;,&quot;80.22.362&quot;,&quot;84=86,-source=web&quot;]">Сохранённая копия</a><a class="link link_click-propagation_no link_pseudo_yes link_ajax_yes link_theme_pseudo typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" tabindex="0" href="/search/?text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;lr=51&amp;msid=1507233190.00093.22863.6200&amp;rstr=-1&amp;noreask=1&amp;site=www.avito.ru" data-counter="[&quot;w&quot;,&quot;80.22.336&quot;,&quot;84=86,-source=web&quot;]">Показать ещё с сайта</a>
 

orka13

Client
Регистрация
07.05.2015
Сообщения
2 177
Благодарностей
2 184
Баллы
113
Код:
(?<=<span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq\d+" tabindex="-1" rel="noopener" target="_blank" href=")http.*?(?="\ data-counter=)
Но если есть время и знания, то лучше через xpath. Хз насколько регулярка универсальная в практике получится.
 

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Код:
(?<=<span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq\d+" tabindex="-1" rel="noopener" target="_blank" href=")http.*?(?="\ data-counter=)
Но если есть время и знания, то лучше через xpath. Хз насколько регулярка универсальная в практике получится.
Спасибо, но все равно эта регулярка берет лишнее.
Вот еще пример кусок html:
Код:
<span class="promo-curtain__legal">Устанавливая Яндекс Браузер, вы принимаете</span><a class="link link_theme_normal promo-curtain__agreement-link i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://yandex.ru/legal/browser_agreement">условия лицензионного соглашения</a></div></div></div><div class="promo-curtain__close"><svg width="30" height="30" xmlns="http://www.w3.org/2000/svg"><path d="M15 13.6L1.7.3.3 1.7 13.6 15 .3 28.3l1.4 1.4L15 16.4l13.3 13.3 1.4-1.4L16.4 15 29.7 1.7 28.3.3" fill="#CCC"></path></svg></div></div></li><li class="serp-item t-construct-adapter__legacy" data-cid="1" data-log-node="uniq1507416780347300023"><div class="organic typo typo_text_m typo_line_s"><h2 class="organic__title-wrapper typo typo_text_l typo_line_m"><div class="a11y-hidden">1</div><a class="link link_theme_normal organic__url link_cropped_no i-bem" data-bem="{&quot;link&quot;:{}}" accesskey="1" tabindex="2" data-beacon="" data-log-node="uniq1507416780347300024" rel="noopener" target="_blank" href="https://olmi-connect.ru/product/shpilka-m8/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD5kpHnK9lio9bb4iM1VPfe4W5x0C0-qwflIRTTifi6VAA,,&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUERrT2dsVExfRVNTbTIxRUkxXzd6cHg2TFkzdHh5R25CZkRzSmR5SU15MkdwY3lURGhwNHYxNTMzUjFZc2dtemU4VFR3b1dqT1dNWHBDYVRhdDNzZTdGeXBQMG11eGQzUGozbkZZWm1HYzJaTl9keThRRUxxcyw,&amp;sign=effbdd0bad88daf2c32663c7ff922acf&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 0px;"></i></span><b class="needsclick">Шпилька</b> <b class="needsclick">М</b><b class="needsclick">8</b> - купить по выгодной цене</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507416780347300025"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300026" tabindex="-1" rel="noopener" target="_blank" href="https://olmi-connect.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_WC5IbL5gF2nA55R7BZzfUbx-UGhzxgeV&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUERrT2dsVExfRVNTbTIxRUkxXzd6b3J1NkZRQjJCN0RxWFFJbjFSODgtb1dDamZQVHRmOWNGVWU5T2MtQUZ1OC1XUDU5QmF2YV8tMjNNcHI2TlZJV0Us&amp;sign=73634f4a782086202c9b2dc639e52d3c&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>olmi-connect.ru</b></a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300027" tabindex="-1" rel="noopener" target="_blank" href="https://olmi-connect.ru/product/shpilka-m8/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_H30U4EFIsvA6RXKqTlM_Vn9a4EJkMcyh&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUERrT2dsVExfRVNTbTIxRUkxXzd6cHg2TFkzdHh5R25CZkRzSmR5SU15MkdwY3lURGhwNHYxNTMzUjFZc2dtemU4VFR3b1dqT1dNWHBDYVRhdDNzZTdGeXBQMG11eGQzUGozbkZZWm1HYzJaTl9keThRRUxxcyw,&amp;sign=43174d6ae934121595b31e564adffef0&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">product/shpilka-m8/</a></div><div class="extralinks i-bem" data-bem="{&quot;extralinks&quot;:{}}"><div class="popup2 popup2_target_anchor popup2_autoclosable_yes popup2_theme_normal extralinks__popup i-bem popup2_js_inited" data-bem="{&quot;popup2&quot;:{&quot;directions&quot;:[&quot;bottom-center&quot;]}}"><a class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://hghltd.yandex.net/yandbtm?fmode=inject&amp;url=https%3A%2F%2Folmi-connect.ru%2Fproduct%2Fshpilka-m8%2F&amp;tld=ru&amp;lang=ru&amp;la=1507154048&amp;tm=1507419376&amp;text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;l10n=ru&amp;mime=html&amp;sign=e05a38e9a73af5ed57535dce17d75fa0&amp;keyno=0" data-counter="[&quot;w&quot;,&quot;80.22.362&quot;,&quot;84=85,-source=web&quot;]">Сохранённая копия</a><a class="link link_click-propagation_no link_pseudo_yes link_ajax_yes link_theme_pseudo typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" tabindex="0" href="/search/?text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;lr=51&amp;msid=1507233190.00093.22863.6200&amp;rstr=-1&amp;noreask=1&amp;site=olmi-connect.ru" data-counter="[&quot;w&quot;,&quot;80.22.336&quot;,&quot;84=85,-source=web&quot;]">Показать ещё с сайта</a><span class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s show-feedback i-bem" data-bem="{&quot;link&quot;:{},&quot;show-feedback&quot;:{&quot;abuseLink&quot;:&quot;https://yandex.ru/search/abuse?sign=652548c832b56dfae3f6e74aea55a273&amp;keyno=0&quot;,&quot;reqid&quot;:&quot;1507419376151334-561712462466795514694866-sas1-8730&quot;}}" rel="noopener" target="_blank" tabindex="0" role="button" data-counter="[&quot;w&quot;,&quot;80.22.1436&quot;,&quot;689=1086,84=85,-source=web&quot;]">Пожаловаться</span></div></div></div><div class="organic__content-wrapper clearfix"><div class="text-container typo typo_text_m typo_line_m organic__text"><b>Шпилька</b> <b>М</b><b>8</b>. Доставка по РФ, самовывоз в <b>Москве</b>.&nbsp;<b class="organic__passage">... </b>В этом случае стоимость доставки будет рассчитываться как стоимость <wbr>доставки по <b>Москве</b> или <b>Московской</b> <b>области</b> (если ТК находится за <wbr>пределами МКАД).</div></div></div></li><li class="serp-item t-construct-adapter__legacy" data-cid="2" data-log-node="uniq1507416780347300028"><div class="organic typo typo_text_m typo_line_s"><h2 class="organic__title-wrapper typo typo_text_l typo_line_m"><div class="a11y-hidden">2</div><a class="link link_theme_normal organic__url link_cropped_no i-bem" data-bem="{&quot;link&quot;:{}}" accesskey="2" tabindex="2" data-beacon="" data-log-node="uniq1507416780347300029" rel="noopener" target="_blank" href="https://www.avito.ru/moskva?q=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B8%20%D0%BC8" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD5kpHnK9lio9XPOnieP7YQBovzVqj9ang0YEepmskggOQ,,&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dms5X2ZPVE5mY2NVb1dPZVZQOFU4MTJUR0RzUURONHhWZUJha3o5R1Vjck45QjlWdHBmWU5WVFN0NG5xQ2tIR1M4S2pscXRJaFNuYXRSRjh6Nld6MVFINlNvQ0tzZHE1YVNaMWFlX2UtU3h1NnpLd25lb3V3eEhYUy1Ec0ZkY3VZTE1SRzRmYTFPdEhibWlfbmo2UUZxd205R3JRbEM0MFZLVl82X1MyVUhkMXI0NXg2ZWdOMFpGNVk0eXZMNDBEYyw,&amp;sign=c9826334dc2060b267c9a96688780d2f&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 -16px;"></i></span><b class="needsclick">шпильки</b> <b class="needsclick">м</b><b class="needsclick">8</b> - Доска объявлений от частных лиц...</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507416780347300030"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300031" tabindex="-1" rel="noopener" target="_blank" href="https://www.avito.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_PN27SaXvvNSrjOss3Xh6TRkVp9nw1WgJ&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dGNwa0k4MTQ3TWkzQWp6TlhlVk1kMTdHTzYyRVQtVEF1bFFiczBFY3ZlRmRuUnVvWEtYR19u&amp;sign=c476b84a971bea90f30bbaa6d2cbb1d6&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>avito.ru</b></a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300032" tabindex="-1" rel="noopener" target="_blank" href="https://www.avito.ru/moskva?q=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B8%20%D0%BC8" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_xe6zfTZA2L39I_pdoHWlT5dsliJOD6Z-&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXT1BSMnNLODM0c2pCbW9MZC05ams3dms5X2ZPVE5mY2NVb1dPZVZQOFU4MTJUR0RzUURONHhWZUJha3o5R1Vjck45QjlWdHBmWU5WVFN0NG5xQ2tIR1M4S2pscXRJaFNuYXRSRjh6Nld6MVFINlNvQ0tzZHE1YVNaMWFlX2UtU3h1NnpLd25lb3V3eEhYUy1Ec0ZkY3VZTE1SRzRmYTFPdEhibWlfbmo2UUZxd205R3JRbEM0MFZLVl82X1MyVUhkMXI0NXg2ZWdOMFpGNVk0eXZMNDBEYyw,&amp;sign=b3369315414d44d0993b487488044023&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">moskva?q=шпильки м8</a></div><div class="extralinks i-bem" data-bem="{&quot;extralinks&quot;:{}}"><div class="popup2 popup2_target_anchor popup2_autoclosable_yes popup2_theme_normal extralinks__popup i-bem popup2_js_inited" data-bem="{&quot;popup2&quot;:{&quot;directions&quot;:[&quot;bottom-center&quot;]}}"><a class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://hghltd.yandex.net/yandbtm?fmode=inject&amp;url=https%3A%2F%2Fwww.avito.ru%2Fmoskva%3Fq%3D%25D1%2588%25D0%25BF%25D0%25B8%25D0%25BB%25D1%258C%25D0%25BA%25D0%25B8%2520%25D0%25BC8&amp;tld=ru&amp;lang=ru&amp;la=1506949888&amp;tm=1507419376&amp;text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;l10n=ru&amp;mime=html&amp;sign=1ebec2ef2f51aee47a2be008cab6a611&amp;keyno=0" data-counter="[&quot;w&quot;,&quot;80.22.362&quot;,&quot;84=86,-source=web&quot;]">Сохранённая копия</a><a class="link link_click-propagation_no link_pseudo_yes link_ajax_yes link_theme_pseudo typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" tabindex="0" href="/search/?text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;lr=51&amp;msid=1507233190.00093.22863.6200&amp;rstr=-1&amp;noreask=1&amp;site=www.avito.ru" data-counter="[&quot;w&quot;,&quot;80.22.336&quot;,&quot;84=86,-source=web&quot;]">Показать ещё с сайта</a><span class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s show-feedback i-bem" data-bem="{&quot;link&quot;:{},&quot;show-feedback&quot;:{&quot;abuseLink&quot;:&quot;https://yandex.ru/search/abuse?sign=652548c832b56dfae3f6e74aea55a273&amp;keyno=0&quot;,&quot;reqid&quot;:&quot;1507419376151334-561712462466795514694866-sas1-8730&quot;}}" rel="noopener" target="_blank" tabindex="0" role="button" data-counter="[&quot;w&quot;,&quot;80.22.1436&quot;,&quot;689=1086,84=86,-source=web&quot;]">Пожаловаться</span></div></div></div><div class="organic__content-wrapper clearfix"><div class="text-container typo typo_text_m typo_line_m organic__text">По всей России <b>Москва</b> <b>Московская</b> <b>область</b> Выбрать другой...&nbsp;<b class="organic__passage">... </b><b>Шпильки</b>, стяжки стальные резьбовые <b>М</b><b>8</b> длина 130 мм.</div></div></div></li><li class="serp-item t-construct-adapter__legacy" data-cid="3" data-log-node="uniq1507416780347300033"><div class="organic typo typo_text_m typo_line_s"><h2 class="organic__title-wrapper typo typo_text_l typo_line_m"><div class="a11y-hidden">3</div><a class="link link_theme_normal organic__url link_cropped_no i-bem" data-bem="{&quot;link&quot;:{}}" accesskey="3" tabindex="2" data-beacon="" data-log-node="uniq1507416780347300034" rel="noopener" target="_blank" href="https://www.maxidom.ru/catalog/skobjanye-izdelija/metizy-krepezhnye-izdelija/bolty-gajjki-vinty-shajjby/1001047487/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD5kpHnK9lio9aJ2gf1Q1OEQHP1rbfzHEMvZEAs4QuMnSA,,&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlJlbnp0RFJpblZXX0xpeFdIRldBSHJDMzhYYUxXSWZFVFphTHRxbUFfMkNpdmFIVDBIUXVHYVpXMVVna1V5aUZuNlFHY0pRd2czLWhpaWhjckphbTdhNEZ6dXJ4TlhrS2phSTA2Y2c1b2hkdDdQaVAwRmRMbEtBaTVYTDNFemlrUVRfeC1CaXJYMzI1R0RzS3lPc3FtS1VxWTZJb2lnV2JGQm5nT0RzY1dIT3pINVNDaEFwbkRoTU1wNklCeXFLNCw,&amp;sign=d25976454b53a64da0395fd05aa2be23&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 -32px;"></i></span><b class="needsclick">шпилька</b> DIN976 <b class="needsclick">М</b><b class="needsclick">8</b>x100 с гайкой и шайбой оцинк 2шт</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507416780347300035"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300036" tabindex="-1" rel="noopener" target="_blank" href="https://www.maxidom.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_We_yMLPZpl0UpxGQR96d2cZoW08Wbb_m&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlYxbklNeHZLTHNjUEtZSE9xWXRhX2hCOGh6R2JNMldXczkwaHg0MmFaMlltVk5Id0l0WVdkVHFOX1h5YXVpdU0s&amp;sign=283009ff3a0a972169397caefbd67139&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>maxidom.ru</b></a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300037" tabindex="-1" rel="noopener" target="_blank" href="https://www.maxidom.ru/catalog/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_QJVu0-L4rkw-K0hxqC4uXb3xAHh7_2c-&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlJlbnp0RFJpblZhU3ZLcTZNZ3BnWGxrTXA4ZVVmNlNsNW1heW1zRF8ta3dNV2lvazNJQWc0ajR2RDdWdU0xc3YzS0ZYU0lvN3ZHUSws&amp;sign=ac2b9b8c5262af06981279b508285026&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">Каталог</a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300038" tabindex="-1" rel="noopener" target="_blank" href="https://www.maxidom.ru/catalog/skobjanye-izdelija/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_-oO89THj98zvFlQwLESlacz9mpozUrZl&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlJlbnp0RFJpblZXX0xpeFdIRldBSHJDMzhYYUxXSWZFVFphTHRxbUFfMkVwUFM4QWpzN1lPczhQZk0wZkNzOUZBYXA4cHF5b1ZGeGNHZFlMRDZ2MTdlbTZjbXNsSEp0MCw,&amp;sign=c516619e660d60dd970791672c64e508&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">Скобяные изделия</a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300039" tabindex="-1" rel="noopener" target="_blank" href="https://www.maxidom.ru/catalog/skobjanye-izdelija/metizy-krepezhnye-izdelija/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_WVbKSHEdy-veZ06gnQDYRgKevgUTwIi9&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlJlbnp0RFJpblZXX0xpeFdIRldBSHJDMzhYYUxXSWZFVFphTHRxbUFfMkNpdmFIVDBIUXVHYVpXMVVna1V5aUZuNlFHY0pRd2czMHUtdkltSVdWakFUTlhSU2lSZnl2S0xCejNpNlpsUjZyS2plQzFYOG1FVFdTajluNXZDa3NzZlBkX0RRTW5DVWcsLA,,&amp;sign=c917bc6d2759d7c24f5f81def73d1d57&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">Крепежные изделия</a><span class="path__separator">›</span><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300040" tabindex="-1" rel="noopener" target="_blank" href="https://www.maxidom.ru/catalog/skobjanye-izdelija/metizy-krepezhnye-izdelija/bolty-gajjki-vinty-shajjby/1001047487/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_mWBqdqFjepcLZMYoLTDxIPP0msL5ZTHS&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXUFJWLUhmalcwV3NOcHN4OEFPeS0yYlJlbnp0RFJpblZXX0xpeFdIRldBSHJDMzhYYUxXSWZFVFphTHRxbUFfMkNpdmFIVDBIUXVHYVpXMVVna1V5aUZuNlFHY0pRd2czLWhpaWhjckphbTdhNEZ6dXJ4TlhrS2phSTA2Y2c1b2hkdDdQaVAwRmRMbEtBaTVYTDNFemlrUVRfeC1CaXJYMzI1R0RzS3lPc3FtS1VxWTZJb2lnV2JGQm5nT0RzY1dIT3pINVNDaEFwbkRoTU1wNklCeXFLNCw,&amp;sign=b001b052132c0994cca6970d514a5002&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]">…/1001047487</a></div><div class="extralinks i-bem" data-bem="{&quot;extralinks&quot;:{}}"><div class="popup2 popup2_target_anchor popup2_autoclosable_yes popup2_theme_normal extralinks__popup i-bem popup2_js_inited" data-bem="{&quot;popup2&quot;:{&quot;directions&quot;:[&quot;bottom-center&quot;]}}"><a class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" rel="noopener" target="_blank" tabindex="0" href="https://hghltd.yandex.net/yandbtm?fmode=inject&amp;url=https%3A%2F%2Fwww.maxidom.ru%2Fcatalog%2Fskobjanye-izdelija%2Fmetizy-krepezhnye-izdelija%2Fbolty-gajjki-vinty-shajjby%2F1001047487%2F&amp;tld=ru&amp;lang=ru&amp;la=1506409088&amp;tm=1507419376&amp;text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;l10n=ru&amp;mime=html&amp;sign=6046ec5cad88e88bd1f69651385b9811&amp;keyno=0" data-counter="[&quot;w&quot;,&quot;80.22.362&quot;,&quot;84=87,-source=web&quot;]">Сохранённая копия</a><a class="link link_click-propagation_no link_pseudo_yes link_ajax_yes link_theme_pseudo typo typo_text_m typo_line_s i-bem" data-bem="{&quot;link&quot;:{}}" tabindex="0" href="/search/?text=%D1%88%D0%BF%D0%B8%D0%BB%D1%8C%D0%BA%D0%B0%20%D0%BC8&amp;lr=51&amp;msid=1507233190.00093.22863.6200&amp;rstr=-1&amp;noreask=1&amp;site=www.maxidom.ru" data-counter="[&quot;w&quot;,&quot;80.22.336&quot;,&quot;84=87,-source=web&quot;]">Показать ещё с сайта</a><span class="link link_click-propagation_no link_theme_normal typo typo_text_m typo_line_s show-feedback i-bem" data-bem="{&quot;link&quot;:{},&quot;show-feedback&quot;:{&quot;abuseLink&quot;:&quot;https://yandex.ru/search/abuse?sign=652548c832b56dfae3f6e74aea55a273&amp;keyno=0&quot;,&quot;reqid&quot;:&quot;1507419376151334-561712462466795514694866-sas1-8730&quot;}}" rel="noopener" target="_blank" tabindex="0" role="button" data-counter="[&quot;w&quot;,&quot;80.22.1436&quot;,&quot;689=1086,84=87,-source=web&quot;]">Пожаловаться</span></div></div></div><div class="organic__content-wrapper clearfix"><div class="text-container typo typo_text_m typo_line_m organic__text">Екатеринбург. Самара. <b>Москва</b> <b>и</b> <b>Московская</b> <b>область</b>.&nbsp;<b class="organic__passage">... </b><b>ШПИЛЬКА</b>. Цена указана без учета скидок. Точную информацию по наличию <wbr>товара вы можете уточнить у менеджера по телефону</div></div></div></li><li class="serp-item t-construct-adapter__legacy" data-cid="4" data-log-node="uniq1507416780347300041"><div class="organic typo typo_text_m typo_line_s"><h2 class="organic__title-wrapper typo typo_text_l typo_line_m"><div class="a11y-hidden">4</div><a class="link link_theme_normal organic__url link_cropped_no i-bem" data-bem="{&quot;link&quot;:{}}" accesskey="4" tabindex="2" data-beacon="" data-log-node="uniq1507416780347300042" rel="noopener" target="_blank" href="https://leroymerlin.ru/product/shpilka-s-metricheskoy-rezboy-ocinkovannaya-m8h1000-mm-14191629/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD5kpHnK9lio9dp88zwjJi-A9wwjDIux7f8Zuv0g6oZ30w,,&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXR2tKOHRNcVVfYzFsNy1IY2pza0toeHdpVS1nVlhtTG1JcFNyNmxvWnJKZ1BQajZZMFFwT2VxM3BEWk54TFJuSHJ2QlI3Q25lamdFSDM5V2NBZWxJSElwUFRXYTVpbjVmcFZKclU5bF9DOFVuNzZpY2YxV3ZqdnRWMFBtSDdEQUs4cDZqTWt0Q3B6ZWE2TVU3OG5qN2xxQ1Fxa2lKWklTWVY0eTRCVlNKWGptb0NHdzU5dmV1UFUs&amp;sign=0d2120ff8ad407aaff4fe814be3f9867&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><span class="favicon favicon_page_0"><i class="favicon__icon" style="background-position:0 -48px;"></i></span><b class="needsclick">Шпилька</b> с метрической резьбой оцинкованная <b class="needsclick">М</b><b class="needsclick">8</b>х1000 мм</a></h2><div class="organic__subtitle typo typo_type_greenurl"><div class="path organic__path" data-log-node="uniq1507416780347300043"><a class="link link_outer_yes link_theme_outer path__item i-bem" data-bem="{&quot;link&quot;:{}}" data-log-node="uniq1507416780347300044" tabindex="-1" rel="noopener" target="_blank" href="https://leroymerlin.ru/" data-counter="[&quot;rc&quot;,&quot;http://yandex.ru/clck/jsredir?from=yandex.ru%3Byandsearch%3Bweb%3B%3B&amp;text=&amp;etext=1567.pksqgeavH81kEroQ9scSnXmaKqGArTsehDz18H000YD96DmZdPUnR8-XAzCW3g8s.7a8501c58aee75b6cd5d1a1d7634902c8aa26448&amp;uuid=&amp;state=PEtFfuTeVD4jaxywoSUvtJXex15Wcbo_fVuPTChhD_hsHCqUOxYEqikazJJ9XPtU&amp;&amp;cst=AiuY0DBWFJ4BWM_uhLTTxJGAyi_pSyAS_v5gHsytsIRMq4hiPNqc5iS7Hd_EZ9FAmwbuGBTSKMD2fhvGbr0bmeg6wxeoTuVUNkTt5Cgzxq27I61vab2HKPi3QJu0J0r7BXXQVd4jpxmQrzBVw0NzcO_T-zAzdPpTtvFKgTK47cck3MK6-rZQVqf-xU52mT32O5pdcdLNY7IADsuoT5rxivAThtNMGDI8vhszUazeGudT4RQT0X-TK1A0KjEbhmmHAlXu3BE_yyjWxDJvtFPlreVXwZ6Zn04PHKpeHNFcQukjJ7nIYGt3jdF-DPIZE1bLMrHMQI0X4vJxlG9gzTiMV7FKUZiIILignAgFw5fpprhbUmAi6QFmMfvz902KXNIhsdxHtsqDKi3FBurDERZopU7ttkXHLAhMWZeKD-8U3OSD39vt7MwrCcd5p3ceAAazyV_We6imld-vKCw5cmqwB_gSeNlwTWQ57V-AKUMsLsWCOFdo3y9d6nzK7WNFVKEXg7aTxln_WwkEaMnh6sixV-dTKwgQhkoHD6U90WXRvhr_OgtE_frmqF4MaTdKZrJJcBGlrcWsPyD6osxTpCWBdBVEAppgdkMspzmxcuDTfw8,&amp;data=UlNrNmk5WktYejY4cHFySjRXSWhXR2tKOHRNcVVfYzFsNy1IY2pza0toejZ1Si1IWWp5eERwR3h4SUNmdW5GTEYtZzJTV01ENHNXczJ4ODdRNENBcjFHaFZYOTVuN2t4S2ZXMFRSZVlabUUs&amp;sign=d8021e2f73d47414fdf2e3139bc2d6ca&amp;keyno=8&amp;b64e=2&amp;ref=orjY4mGPRjk5boDnW0uvlpAgqs5Jg3qugxMaS29Lcl5dxYDPYn3GP6vWAgsmSWn4c4bWNRZ1L0bzScowveDqBB1E_SvesB_40NTVWeSN0Th2qw_TRVdg4PZep69Yh7fsALTaHYH3WOorJ9bZ1e0DDMOGFMkIzXJgSs5_s17Puj5oz1JqyQygxBA_tp1yQp_g&amp;l10n=ru&quot;]"><b>leroymerlin.ru</b>
 

orka13

Client
Регистрация
07.05.2015
Сообщения
2 177
Благодарностей
2 184
Баллы
113
Ага, щас. Я сделаю, а потом ты скинешь новый кусок кода, и опять для него делай. Давай лучше через xpath. Шаблон на барузере, или без него на Post-Get? Скинь сюда полностью ВЕСЬ код страницы, или залей куда-нить если не влезет. Или шаблон в личку скинь, сразу подправлю.
 
  • Спасибо
Реакции: Sobesednic и doc

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Ага, щас. Я сделаю, а потом ты скинешь новый кусок кода, и опять для него делай. Давай лучше через xpath. Шаблон на барузере, или без него на Post-Get? Скинь сюда полностью ВЕСЬ код страницы, или залей куда-нить если не влезет. Или шаблон в личку скинь, сразу подправлю.
Да он не влазил сюда, вот залил весь: https://pastebin.com/NBFVhqKh или любой запрос в поиск яши сделай и взять исходный код.
В шаблоне сделано через браузер - взять DOM.
Хотелось бы регулярками обойтись, но на край можно на Xpach.
 

orka13

Client
Регистрация
07.05.2015
Сообщения
2 177
Благодарностей
2 184
Баллы
113
Xpath:
Код:
//li/div/h2/a[not(contains(@href,'yabs.yandex'))]
через 1-2 часа скину код внедрения, если сам не поймешь по примеру с http://zennolab.com/discussion/threads/obzor-zennoposter-xpath-na-primere-jandeks-marketa.37497/

UPD:
Скачать шаблон-пример: www.orka13.ru/fls/Zenno/Yandex_Serp_xPath.zip
Код:
IZennoList Hrefitem_List = project.Lists["Hrefitem_List"]; // подключаем зеновский список под ссылки
IZennoList Textitem_List = project.Lists["Textitem_List"]; // подключаем зеновский список под анкоры
string result = "";

//Получаем текущую активную вкладку
Tab tab = instance.ActiveTab;
//Соберем все наши элементы используя "//li/div/h2/a[not(contains(@href,'yabs.yandex'))]" - xPath запрос. Будьте внимальны и используйте FindElementsByXPath.
HtmlElementCollection itemsCollection = tab.FindElementsByXPath("//li/div/h2/a[not(contains(@href,'yabs.yandex'))]");
//Лайфхак. Раскомментировать (Чтобы проверить, работает ли xPath) можно отправить в лог информацию о текущем количестве элементов в коллекции
//project.SendInfoToLog("Количество элементов на страничке = " + itemsCollection.Count().ToString(), true);

//начинаем перебирать сформированную коллекцию HtmlElement-ов
foreach(HtmlElement item in itemsCollection)
{
    string Hrefitem = item.GetAttribute("href"); // получаем ссылку
    Hrefitem_List.Add(Hrefitem); // добавляем ее в список
    result += Hrefitem + "\r\n"; //  добавляем ее для подстраховки в переменную, каждое значение с новой строки  
    string Textitem = item.InnerText; // получаем анкор (InnerText)
    Textitem_List.Add(Textitem); // добавляем его в список
}
return result; // возвращаем переменную с ссылками
 
Последнее редактирование:
  • Спасибо
Реакции: iBotovod и Tonny

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Спасибо за помощь, сейчас попробую и отпишусь!
 

Tonny

Client
Регистрация
20.07.2013
Сообщения
142
Благодарностей
5
Баллы
18
Все отлично работает.
 

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