shitty table WIP
This commit is contained in:
@@ -181,9 +181,9 @@ std::vector<std::wstring> find_in_html(std::string& html, std::string regex, std
|
||||
it != end; it++) {
|
||||
|
||||
std::wstring found_entry = from_utf8(it->str());
|
||||
std::cout << "Found: " << to_utf8(found_entry) << std::endl;
|
||||
// std::cout << "Found: " << to_utf8(found_entry) << std::endl;
|
||||
std::wstring extracted = substring_from_to(found_entry, from_utf8(html_start), from_utf8(html_end));
|
||||
std::cout << "Extracted: " << to_utf8(extracted) << std::endl;
|
||||
// std::cout << "Extracted: " << to_utf8(extracted) << std::endl;
|
||||
parsed.push_back(extracted);
|
||||
}
|
||||
return parsed;
|
||||
@@ -293,8 +293,8 @@ Check parseOfdRuAnswer(std::string html) {
|
||||
Check c;
|
||||
|
||||
for (int i = 0; i < products.size(); i ++) {
|
||||
std::cout << "Adding to check: ";
|
||||
std::cout << to_utf8(products[i]) << " " << to_utf8(prices[i]) << " " << to_utf8(net_weights[i]) << " " << to_utf8(amounts[i]) << std::endl;
|
||||
// std::cout << "Adding to check: ";
|
||||
// std::cout << to_utf8(products[i]) << " " << to_utf8(prices[i]) << " " << to_utf8(net_weights[i]) << " " << to_utf8(amounts[i]) << std::endl;
|
||||
Goods goods(to_utf8(products[i]), std::stod(prices[i]), to_utf8(net_weights[i]), std::stod(amounts[i]));
|
||||
c.add_goods(goods);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user