JBrowser Source Docs
You are reading the documentation for JBrowser 1.5.1. The newest release is 1.5.4. Go to the latest documentation

jbrowser.services.history

Generated from the source code of JBrowser 1.5.1.

jbrowser/services/history.py · 229 lines

SQLite-backed browsing history with per-space tagging and frecency ranking.

HistoryEntry#

class HistoryEntrysource

Attributes

Name Value
id int
url str
title str
space_id str
ts float

PageStat#

class PageStatsource

Attributes

Name Value
url str
title str
visits int
last_visit float

PageStat.frecency#

frecency(now: float | None=None) -> floatsource

HistoryService#

class HistoryService(QObject)source
HistoryService(path: Path, parent: QObject | None=None)

Signals

Signal Arguments
changed ()
cleared (object, object, object)
hostDeleted (str)
urlsDeleted (list)

Attributes

Name Value
DUPLICATE_WINDOW 15.0

HistoryService.close#

close() -> Nonesource

HistoryService.add_visit#

add_visit(url: str, title: str, space_id: str) -> Nonesource

HistoryService.update_title#

update_title(url: str, title: str) -> Nonesource

HistoryService.delete_ids#

delete_ids(ids: list[int]) -> Nonesource

HistoryService.delete_host#

delete_host(host: str) -> intsource

Delete every visit to host or its sub-domains. Returns the number of visits removed.

HistoryService.delete_url#

delete_url(url: str) -> Nonesource

HistoryService.clear#

clear(start: float | None=None, end: float | None=None, space_id: str | None=None) -> intsource

HistoryService.search#

search(text: str='', space_id: str | None=None, start: float | None=None, end: float | None=None, limit: int=1000) -> list[HistoryEntry]source

HistoryService.pages_matching#

pages_matching(text: str, limit: int=60) -> list[PageStat]source

HistoryService.top_sites#

top_sites(limit: int=8) -> list[PageStat]source

HistoryService.count#

count() -> intsource