MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / xpText

Method xpText

base/spider.py:66–71  ·  view source on GitHub ↗
(self,root,expr)

Source from the content-addressed store, hash-verified

64 def html(self,content):
65 return etree.HTML(content)
66 def xpText(self,root,expr):
67 ele = root.xpath(expr)
68 if len(ele) == 0:
69 return ''
70 else:
71 return ele[0]
72 def loadModule(self,name,fileName):
73 return SourceFileLoader(name, fileName).load_module()
74 def test(self):

Callers 2

searchContentMethod · 0.95
searchContentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected