Want to remove this text content of a tag "set baidu for the home page,"
My statement is:
Response. Xpath ("//a [@ id='setf'] ")
Returned to the []
And tried CSS and full path
Response. CSS (" setf ")
Response. Xpath ("/HTML/body/div [@ id='wrapper']/div [@ id='ftCon']/div [@ class='ftCon - wrapper']/div [@ id='ftConw']/p [@ id='lh']/a [@ id='setf'] ")
Is returned to the []
See some of the online statement, said the browser not tbody these labels, I think I this is a tag, should can't, then I go directly to have a label at the front of the div, still not
Response. Xpath ("/HTML/body/div [@ id='wrapper']/div [@ id='ftCon']/div [@ class='ftCon - wrapper']/div [@ id='ftConw'] ")
The feeling...
CodePudding user response:
Request with requests in baidu home page should be no & lt; A id="setf" this a labelCodePudding user response: