コード例 #1
0
ファイル: test_catalog.py プロジェクト: chalendony/css
def test_count_details_pages():
    catalog = Catalog()
    res = catalog.build()
    assert res == 250  # lost one, .. did not find the bug...but close enough...
コード例 #2
0
"""
Extracts text from the Phino web site to create an MVP catalog. The catalog is in json formatted
"""
import jsonlines

from selector.phineo.catalog import Catalog
import logging
import json
if __name__ == "__main__":
    catalog = Catalog(log_level=logging.INFO)
    cat = catalog.build()
    filename = '/Users/stewarta/repos/css/data/phineo.json'
    with open(filename, 'w') as f:
        f.write(json.dumps(cat))