@FireRodis нужно смотреть что за селектор вы парсите через xpath , и как составлен запрос xpath
Помогите вытянуть xpath
-
То ли лижы не едут...
Пробую вытянуть текст из данного кода

Ставлю в получить текст

И фоновый шум... понимаю что куда то надо затулить TD а куда ?
-
@dobrok said in Помогите вытянуть xpath:
То ли лижы не едут...
Пробую вытянуть текст из данного кода
Ставлю в получить текст
И фоновый шум... понимаю что куда то надо затулить TD а куда ?
Вы предлагаете перепечатывать текст селектора со скриншота?
-
@Fox said in Помогите вытянуть xpath:
@dobrok said in Помогите вытянуть xpath:
То ли лижы не едут...
Пробую вытянуть текст из данного кода
Ставлю в получить текст
И фоновый шум... понимаю что куда то надо затулить TD а куда ?
Вы предлагаете перепечатывать текст селектора со скриншота?
Извиняюсь..
(//TD[@align='center'])[9]
TD <td class="body_mr_css_attr" align="center" valign="top" width="100%" style="min-width:600px"> <center> <table width="100%" style="min-width:500px;" border="0" cellpadding="0" cellspacing="0" class="body_mr_css_attr" bgcolor="#f1f1f1"> <tbody><tr> <td align="center"> <table width="100%" style="min-width:500px" border="0" cellpadding="0" cellspacing="0" class="body_mr_css_attr"> <tbody><tr height="50"> <td width="100%" height="50" style="line-height:1px;font-size:1px"> </td> </tr> <tr> <td align="center"> <table class="panel_mr_css_attr" border="0" cellpadding="0" cellspacing="0" style="min-width:500px;"> <tbody><tr> <td valign="middle" align="center" class="panel_mr_css_attr"> <div class="expand_mr_css_attr" style="max-height:40px"> <div> <a href="https://accts.epicgames.com/T/v610000017854618558b9f713434b5c3ae8/b268b343993a472b0000021ef3a0bcc2/b268b343-993a-472b-8236-8ebbbf5f8ffd?__dU__=v0G4RBKTXg2GsSUKeCIT0ZsixpTu2oNAqvl6X7t4UbJT0=&__F__=v0fUYvjHMDjRPMSh3tviDHXIoXcPxvDgUUCCPvXMWoX_0JoZLAZABQF2Skw9vkwo_mga2JAbIShxp9CWnI6HiATIqGqMAM5P5DvA4NbIL3oT5CJ60BcBYDrzIAR5fJi2NnXDdoDiDAWJReuX0T42aqeHwU4gxhkcXa8vp1xEZ2hY0jgRHjgsdNILOMGD1HNHX1Ir-nB2Ixfs7k6NLn36iTkT6FRxQDKUlI1EBv0y2P2b17g3lUklh7ytmCAGlfMk1a-F5N3CBRIW0xDpEgk6E5km-R_X-3D-F-TuYnTC-1zsA=" target="_blank" rel=" noopener noreferrer"><img align="none" alt="Epic Games" border="0" hspace="0" src="https://proxy.imgsmail.ru?email=morozovnecf2000%40mail.ru&e=1616582923&flags=0&h=tbp7XGN3Fohb8y1qo3t3PA&url173=aW1hZ2VzLmhhcm1vbnkuZXBzaWxvbi5jb20vQ29udGVudEhhbmRsZXIvaW1hZ2VzLzYxYTdmYmNmLTk5NDAtNGMxMy1hZDgyLTFjYzhkNjBkMzNiZi9SVE1fSW1hZ2VzL0VNTF9FUElDR0FNRVNfTE9HTy5wbmc~&is_https=0" style="max-width: 70px;height: auto;display: block;margin: 0px;" vspace="0" width="55px" data-title="Epic Games"> </a> </div> </div> </td> </tr> </tbody></table> </td> </tr> </tbody></table> <table> <tbody><tr> <td align="center" style="font-family: arial,helvetica,sans-serif;font-size:26px;color:#313131;line-height:32px" class="MsoNormal_mr_css_attr"> </td> </tr> <tr> <td align="center"> </td> </tr> </tbody></table> <table width="100%" style="min-width:500px;" border="0" cellpadding="0" cellspacing="0" class="body_mr_css_attr"> <tbody><tr> <td align="center"> <table width="500" class="panel_mr_css_attr" border="0" cellpadding="0" cellspacing="0" style="min-width:500px"> <tbody><tr> <td width="100%" height="50" style="line-height:1px;font-size:1px"> <div style="font-family: sans-serif;color:#202020;text-align: center;font-size: 26px;line-height: 32px;line-height: 100%;letter-spacing: 2px;" class="MsoNormal_mr_css_attr"> Your Security Code <br><br> </div> </td> </tr> </tbody></table> <table width="100%" style="min-width:500px;" border="0" cellpadding="0" cellspacing="0" class="body_mr_css_attr"> <tbody><tr height="40"> <td align="center"> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> <table width="500" class="panel-padded_mr_css_attr" border="0" cellpadding="0" cellspacing="0" style="background-color: #fff;margin: 0 auto;"> <tbody><tr height="50"> <td width="50"> </td> <td height="50" style="line-height:1px;font-size:1px"> </td> <td width="50"> </td> </tr> <tr> <td width="50"> </td> <td align="left" style="font-family: arial,helvetica,sans-serif;font-size:14px;color:#202020;line-height:19px;line-height: 134%;letter-spacing: .5px;" class="MsoNormal_mr_css_attr"> Hello Юпитер, <br><br> </td> <td width="50"> </td> </tr> <tr> <td width="50"> </td> <td align="left" style="font-family: arial,helvetica,sans-serif;font-size:14px;color:#202020;line-height:19px;line-height: 134%;letter-spacing: .5px;" class="MsoNormal_mr_css_attr"> You recently tried to perform an action that requires additional verification. In order to complete this action, please use the following code. <br><br> </td> <td width="50"> </td> </tr> <tr> <td width="50"> </td> <td align="left" style="font-family: arial, helvetica, sans-serif; font-size: 14px; color: rgb(32, 32, 32); line-height: 134%; letter-spacing: 0.5px;" class="MsoNormal_mr_css_attr"> Your Security Code <br><br> </td> <td width="50"> </td> </tr> <tr height="25"> <td width="50"> </td> <td style="line-height:1px;font-size:1px"> </td> <td width="50"> </td> </tr> </tbody></table> <table width="500" class="panel-padded_mr_css_attr" border="0" cellpadding="0" cellspacing="0" style="min-width:400px;background-color: #fff;"> <tbody><tr> <td width="50" style=""> </td> <td align="center" style="font-family: arial, helvetica, sans-serif; font-size: 26px; text-align: center; color: rgb(32, 32, 32); line-height: 134%; letter-spacing: 20px; border: 5px groove rgb(244, 250, 88);" class="MsoNormal_mr_css_attr"> 287362<br><br> </td> <td width="50"> </td> </tr> <tr> <td width="50" style=""> </td> <td align="left" style="font-family: arial,helvetica,sans-serif;font-size:14px;color:#202020;line-height:19px;line-height: 134%;" class="MsoNormal_mr_css_attr"> <div style="font-family: arial,helvetica,sans-serif;font-size:14px;color:#202020;line-height:19px;letter-spacing: .5px;" class="MsoNormal_mr_css_attr"> If this wasn't you, please <a href="https://accts.epicgames.com/T/v610000017854618558b9f713434b5c3ae8/b268b343993a472b0000021ef3a0bcc3/b268b343-993a-472b-8236-8ebbbf5f8ffd?__dU__=v0G4RBKTXg2GsSUKeCIT0ZsixpTu2oNAqvl6X7t4UbJT0=&__F__=v0fUYvjHMDjRPMSh3tviDHXIoXcPxvDgUUCCPvXMWoX_0JoZLAZABQF2Skw9vkwo_mga2JAbIShxp4lAcTgLkjUnEBw295limn-Z0IWi6DoFaKhqjADOT-Q7wODWyC96E-QietAXAWA68yAEeXyYtjZ1w3aA4gwFiUXrl9E-Nmqnh8FOIMYZHF2vL6dcRGdoWNI4ER44LHTSCzjBg9RzR19SK_pwdiMX7O5OjS59-ok5E-hUcUAylJSMpemrNRNLoXXMYnMGuEGoen4tlmOKjCIMbWDluItTBQVj3IdUnrXOFvkf1_tw_hfk7mJ0wvtc7A" target="_blank" rel=" noopener noreferrer">change your password</a>. <br><br> Thank you,<br> The Epic Games Team <br><br> </div> </td> <td width="50"> </td> </tr> <tr height="50"> <td width="50"> </td> <td height="50" style="line-height:1px;font-size:1px"> </td> <td width="50"> </td> </tr> </tbody></table> <table width="100%" style="min-width:500px;" border="0" cellpadding="0" cellspacing="0" class="body_mr_css_attr"> <tbody><tr> <td align="center"> <table width="500" class="panel_mr_css_attr" border="0" cellpadding="0" cellspacing="0" style="min-width:500px"> <tbody><tr height="50"> <td width="100%" height="20" style="line-height:1px;font-size:1px"> </td> </tr> <tr> <td align="center"> <div style="font-family: arial, helvetica, sans-serif;font-weight:bold;font-size:10px;color:#202020;text-align:center;line-height:12px" class="MsoNormal_mr_css_attr"> Need Help? <a style="text-decoration:none;color:#037aee" href="https://accts.epicgames.com/T/v610000017854618558b9f713434b5c3ae8/b268b343993a472b0000021ef3a0bcc4/b268b343-993a-472b-8236-8ebbbf5f8ffd?__dU__=v0G4RBKTXg2GsSUKeCIT0ZsixpTu2oNAqvl6X7t4UbJT0=&__F__=v0fUYvjHMDjRPMSh3tviDHXIoXcPxvDgUUCCPvXMWoX_30tcPSLyBQEVxcxZVIrRNjLGlO7ag0Cq_K8h1Z6eadrYqGqMAM5P5DvA4NbIL3oT5CJ60BcBYDrzIAR5fJi2NnXDdoDiDAWJReuX0T42aqeHwU4gxhkcXa8vp1xEZ2hY0jgRHjgsdNILOMGD1HNHX1Ir-nB2Ixfs7k6NLn36iTkT6FRxQDKUlIml2EOQrYpkc_850H4jMIKo8TU_8-RZZSo-rj7hVjt2jjQ8jVASYIVW-R_X-3D-F-TuYnTC-1zsA=" target="_blank" rel=" noopener noreferrer">help.epicgames.com</a><br></div> </td> </tr> <tr height="30"> <td width="100%" height="20" style="line-height:1px;font-size:1px"> </td> </tr> <tr> <td align="center" class="panel-padded_mr_css_attr"> <div style="font-family: arial, helvetica, sans-serif;font-size:10px;color:#202020;text-align:center;line-height:12px" class="MsoNormal_mr_css_attr"> <p> © 2021, Epic Games, Inc. All rights reserved. Epic, Epic Games, the Epic Games logo, Unreal, Unreal Engine, the Unreal Engine logo, Epic Games Store, and the Epic Games Store logo are trademarks or registered trademarks of Epic Games, Inc. in the USA and elsewhere. All other trademarks are the property of their respective owners. </p> </div> </td> </tr> <tr height="30"> <td width="100%" height="30" style="line-height:1px;font-size:1px"> </td> </tr> <tr> <td align="center" class="panel-padded_mr_css_attr"> <div style="font-family: arial, helvetica, sans-serif;font-size:10px;color:#202020;text-align:center;line-height:12px" class="MsoNormal_mr_css_attr"> <a href="https://accts.epicgames.com/T/v610000017854618558b9f713434b5c3ae8/b268b343993a472b0000021ef3a0bcc5/b268b343-993a-472b-8236-8ebbbf5f8ffd?__dU__=v0G4RBKTXg2GsSUKeCIT0ZsixpTu2oNAqvl6X7t4UbJT0=&__F__=v0fUYvjHMDjRPMSh3tviDHXIoXcPxvDgUUCCPvXMWoX_0JoZLAZABQF2Skw9vkwo_mga2JAbIShxprPa-JJdz0Wq68mnO8WjEyqk9i5p-JcqZgG1_ILG8Gn6cl4NxEAb7a8APPjcfRNsdi1d4cXPgetoKDavBtCdOtvJz1YIXf_nVYKG4FQZbQjbMlnvFYYp1fqEdW2uoG_-SnPvSJyHcMbFR-iKNF6DLrPMIQqTzq1PMe0QxnhzenzECgBqqdj9vrOzj30EPMmNBoByqghSJmFRkGTubOvwzzH3P-d5mF3kc=" style="color:#037aee" alias="Terms of Service" target="_blank" rel=" noopener noreferrer">Terms of Service</a> | <a href="https://accts==" style="color:#037aee" alias="Privacy Policy" target="_blank" rel=" noopener noreferrer">Privacy Policy</a> </div> </td> </tr> <tr height="20"> <td width="100%" height="20" style="line-height:1px;font-size:1px"> </td> </tr><tr> </tr><tr height="20"> <td width="100%" height="20" align="center" style="font-family: arial, helvetica, sans-serif;font-size:10px;color:#858585;text-align:center;line-height:12px" class="MsoNormal_mr_css_attr"> Box 254, 2474 Walnut Street, Cary, North Carolina, 27518 </td> </tr><tr> </tr></tbody></table> </td> </tr> </tbody></table> </center> </td> -
@Fox said in Помогите вытянуть xpath:
@dobrok Напишите строку, которую пытаетесь получить из этого кода
Мне надо получить Security Code но в коде его нету...
-
@dobrok said in Помогите вытянуть xpath:
@Fox said in Помогите вытянуть xpath:
@dobrok Напишите строку, которую пытаетесь получить из этого кода
Мне надо получить Security Code но в коде его нету...
Действие "Xpath получить текст"
//td[2][@align="center"][@class="MsoNormal_mr_css_attr"] -
@Fox said in Помогите вытянуть xpath:
//td[2][@align="center"][@class="MsoNormal_mr_css_attr"]
Бьет ошибку
Can't resolve query //td[2][@align="center"][@class="MsoNormal_mr_css_attr"] -
@dobrok said in Помогите вытянуть xpath:
Бьет ошибку
хмм, а в браузере работает

ну попробуйте тогда такой:
//td[@align="center"][contains(@style, "color: rgb(32, 32, 32);")][@class="MsoNormal_mr_css_attr"] -
@Fox said in Помогите вытянуть xpath:
//td[@align="center"][contains(@style, "color: rgb(32, 32, 32);")][@class="MsoNormal_mr_css_attr"]
Так же ошибка..

-
При том если брать только //td[2][@align="center"] выдает просто строки
Start Your Code Your Security Code End Your Code

-
@dobrok said in Помогите вытянуть xpath:
@Fox said in Помогите вытянуть xpath:
//td[@align="center"][contains(@style, "color: rgb(32, 32, 32);")][@class="MsoNormal_mr_css_attr"]
Так же ошибка..
Вы выложили html код страницы, к нему это xpath выражение применяется корректно:

-
This post is deleted!
-
Сработало извлечение через
//td[@align="center"][contains(@style, "color:#202020;")]