[WIP] New source: AcoLab #165
@ -32,10 +32,15 @@ class CExtractor(Extractor):
|
|||||||
|
|
||||||
def find_date(text):
|
def find_date(text):
|
||||||
splited_text = text.split(' ')
|
splited_text = text.split(' ')
|
||||||
|
|
||||||
|
if len(splited_text) < 3:
|
||||||
|
return None
|
||||||
|
|
||||||
month = Extractor.guess_month(splited_text[1])
|
month = Extractor.guess_month(splited_text[1])
|
||||||
year = splited_text[2]
|
|
||||||
if month is None:
|
if month is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
year = splited_text[2]
|
||||||
if not year.isnumeric():
|
if not year.isnumeric():
|
||||||
return None
|
return None
|
||||||
year = int(year)
|
year = int(year)
|
||||||
|
Loading…
Reference in New Issue
Block a user