Ejemplo n.º 1
0
def Main(argv):
  tags = extr.getTags(argv[1]);
  source = extr.getSource(argv[2]);

  parser = extr.BatchParser(tags);
  data = parser.parseBatch(source);
  with lite.dbConnector(argv[3]) as db_conn:
    db_conn.saveInformation(data);
  pass;
Ejemplo n.º 2
0
def Main(argv):
  tags = patterns;
  source = extr.getSource(argv[1]);
  with extr.ResultFile(argv[2]) as file:
    result_array = {item:0 for item in tags};
    (size, result_array) = extr.extrDBItems(result_array, source); 
    result_array['size'] = size;
    file.saveResult(result_array);
  pass;