python - XPath syntax entry

//input[@name='log']

//input[@id='user_login']

//a[@title='Powered by WordPress']

//input[@class='input'][@name='log']

//input[@class='input' OR @name='log']

//input[@class='input' and @name='log']

//a[@id='id1'][@name='namevalue1']

//a[contains(@href,'')]

//img[contains(@src,'')]

//div[contains(@id,'')]

// input [contains (@ name, 'nickname')] # This test themselves feasible, can be added later crawl @

//id[start-with(@id,'')]

//a[start-with(@href='')]

//img[start-with(@src='')]

// * [text () = ''] # does not seem fuzzy search

//following::

Guess you like

Origin www.cnblogs.com/uncle-fang/p/12555887.html