.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.result_types.paper.Paper Class Reference
Inheritance diagram for searx.result_types.paper.Paper:
Collaboration diagram for searx.result_types.paper.Paper:

Public Member Functions

 __post_init__ (self)
Public Member Functions inherited from searx.result_types._base.MainResult
int __hash__ (self)
 normalize_result_fields (self)
Public Member Functions inherited from searx.result_types._base.Result
 __post_init__ (self)
 filter_urls (self, "Callable[[Result | LegacyResult, str, str], str | bool]" filter_func)
int __hash__ (self)
 __eq__ (self, object other)
 __setitem__ (self, str field_name, t.Any value)
t.Any __getitem__ (self, str field_name)
 __iter__ (self)
 as_dict (self)
 defaults_from (self, "Result" other)

Static Public Attributes

DateTime date_of_publication = None
str comments = ""
list tags = []
str type = ""
list authors = []
str editor = ""
str publisher = ""
str journal = ""
str volume = ""
str pages = ""
str number = ""
str doi = ""
list issn = []
list isbn = []
str pdf_url = ""
str html_url = ""
Static Public Attributes inherited from searx.result_types._base.MainResult
str title = ""
str content = ""
str img_src = ""
str thumbnail = ""
datetime publishedDate = None
str pubdate = ""
time length = None
str views = ""
str author = ""
str metadata = ""
 PriorityType = t.Literal["", "high", "low"]
str priority = ""
set engines = set()
bool open_group = False
bool close_group = False
list positions = []
float score = 0
str category = ""
Static Public Attributes inherited from searx.result_types._base.Result
str url = None
str template = "default.html"
str engine = ""
urllib parsed_url = None

Detailed Description

Result type suitable for displaying scientific papers and other
documents.

Definition at line 35 of file paper.py.

Member Function Documentation

◆ __post_init__()

searx.result_types.paper.Paper.__post_init__ ( self)

Definition at line 93 of file paper.py.

93 def __post_init__(self):
94 super().__post_init__()
95 if self.date_of_publication is None and self.publishedDate is not None:
96 self.date_of_publication = DateTime(self.publishedDate)

References __post_init__(), date_of_publication, and searx.result_types._base.MainResult.publishedDate.

Referenced by __post_init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ authors

list searx.result_types.paper.Paper.authors = []
static

Definition at line 56 of file paper.py.

◆ comments

str searx.result_types.paper.Paper.comments = ""
static

Definition at line 47 of file paper.py.

◆ date_of_publication

DateTime searx.result_types.paper.Paper.date_of_publication = None
static

Definition at line 41 of file paper.py.

Referenced by __post_init__().

◆ doi

str searx.result_types.paper.Paper.doi = ""
static

Definition at line 78 of file paper.py.

◆ editor

str searx.result_types.paper.Paper.editor = ""
static

Definition at line 60 of file paper.py.

◆ html_url

str searx.result_types.paper.Paper.html_url = ""
static

Definition at line 90 of file paper.py.

◆ isbn

list searx.result_types.paper.Paper.isbn = []
static

Definition at line 84 of file paper.py.

◆ issn

list searx.result_types.paper.Paper.issn = []
static

Definition at line 81 of file paper.py.

◆ journal

str searx.result_types.paper.Paper.journal = ""
static

Definition at line 66 of file paper.py.

◆ number

str searx.result_types.paper.Paper.number = ""
static

Definition at line 75 of file paper.py.

◆ pages

str searx.result_types.paper.Paper.pages = ""
static

Definition at line 72 of file paper.py.

◆ pdf_url

str searx.result_types.paper.Paper.pdf_url = ""
static

Definition at line 87 of file paper.py.

◆ publisher

str searx.result_types.paper.Paper.publisher = ""
static

Definition at line 63 of file paper.py.

◆ tags

list searx.result_types.paper.Paper.tags = []
static

◆ type

str searx.result_types.paper.Paper.type = ""
static

Definition at line 53 of file paper.py.

◆ volume

str searx.result_types.paper.Paper.volume = ""
static

Definition at line 69 of file paper.py.


The documentation for this class was generated from the following file:
  • /home/andrew/Documents/code/public/searxng/searx/result_types/paper.py