Jump to content
Che

Ce anume inseamna expresia asta ?

Recommended Posts

Posted (edited)
click ( "//a[@title='PHP']" ) // Click the PHP search result

 

 

 

Ce anume face //a[@ sau cum a aflat de asta ? Ce anume este mai exact ? De ce a si de ce nu b, de exemplu ? De ce // in fata si nu fara ?

 

Multumesc !

Edited by Che
  • Active Members
Posted (edited)

Nu ma pricep la PHP, insa asemanator, in Python, se face match / scrapping pe cod HTML / XML folosind xpath.

 

Teoretic, codul asta ar face match (banuiesc ca functia click va face click pe link) pe tag-urile HTML, de tipul <a>, care contin atributul title.

 

Gasesti mai multe aici

 

Ca un rezumat:

 

// - defineste un path catre "nodul" / "tagul" <a> oriunde in HTML / XML.

@ - e doar un indicator catre atributul cautat ( in cazul tau, title )

 

 

Repet, nu stiu daca e vorba de acelasi lucru, dar seamana :)

Edited by MrGrj
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...