MCPcopy
hub / github.com/mvdctop/Movie_Data_Capture / getYear

Method getYear

scrapinglib/parser.py:192–199  ·  view source on GitHub ↗

year基本都是从release中解析的

(self, htmltree)

Source from the content-addressed store, hash-verified

190 return self.getTreeElement(htmltree, self.expr_release).strip().replace('/','-')
191
192 def getYear(self, htmltree):
193 """ year基本都是从release中解析的
194 """
195 try:
196 release = self.getRelease(htmltree)
197 return str(re.findall('\d{4}', release)).strip(" ['']")
198 except:
199 return release
200
201 def getRuntime(self, htmltree):
202 return self.getTreeElementbyExprs(htmltree, self.expr_runtime, self.expr_runtime2).strip().rstrip('mi')

Callers 1

dictformatMethod · 0.95

Calls 1

getReleaseMethod · 0.95

Tested by

no test coverage detected