The problem is that there is no possibility to use either BeautifulSoup or Elementtree The idea is to display only those rows of the table, the date of which coincides with the one entered by the user.

Are there any other basic good tools for searching data in a table, or is the only true regex and its findall , that is, after searching you have to reassemble the entire table?

  • why BeautifulSoup (pure Python), or ElementTree (in the standard library) do not want to use? Without mentioning a specific date format, the question makes little sense (in general, even for people, the result of recognizing dates can be ambiguous). Also: it makes sense to distinguish between tasks: reading / recognizing the input format, filtering in the internal representation, output in the output format. Although sometimes one tool can perform all three tasks (pandas), but it is more convenient (more universal) in parts to work normally. - jfs
  • Table output from the database. If you need to insert into the text, use either template engines or template tags. - Igor

0