コード例 #1
0
ファイル: extractors.py プロジェクト: Lomascolo/daywatch
def parse_gmap(match):
    return parse_google_map(match, None)
コード例 #2
0
ファイル: extractors.py プロジェクト: mtaziz/daywatch
def parse_gmap(match):
    return parse_google_map(match, None)
コード例 #3
0
ファイル: extractors.py プロジェクト: Lomascolo/daywatch
def lon(xpath):
    """Extract the longitude from an XPath to a Google Map."""

    return Extractor(xpath=xpath, fn=lambda matches, response:
                     parse_google_map(matches[0], None)[1])
コード例 #4
0
ファイル: extractors.py プロジェクト: mtaziz/daywatch
def lon(xpath):
    """Extract the longitude from an XPath to a Google Map."""

    return Extractor(
        xpath=xpath,
        fn=lambda matches, response: parse_google_map(matches[0], None)[1])