paper_firehose.processors.html_generator¶
HTML output generation for filtered articles. Based on the original feedfilter.py HTML generation logic.
Classes
|
Generates HTML output files for filtered articles. |
- class paper_firehose.processors.html_generator.HTMLGenerator(template_path='html_template.html')[source]¶
Bases:
objectGenerates HTML output files for filtered articles.
- Parameters:
template_path (str)
- generate_html_for_topic_from_database(db_manager, topic_name, output_path, topic_description=None)[source]¶
Standalone method to generate HTML for a topic directly from papers.db. This method can be called independently without going through the filter command.
- generate_html_from_database(db_manager, topic_name, output_path, heading=None, description=None)[source]¶
Generate an HTML file for filtered entries pulled directly from papers.db.
- generate_pqa_summarized_html_from_database(db_manager, topic_name, output_path, title=None, description=None)[source]¶
Generate an HTML file with all ranked entries for a specific topic.
Entries with paper_qa_summary show the full PQA summary box. Entries without paper_qa_summary show just the abstract/summary (like ranked HTML). All entries are sorted by rank_score descending.