mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 20:55:10 +01:00
Be more explicit about some dependencies
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
# Core application
|
||||
fastapi[all]
|
||||
sqlmodel
|
||||
sqlalchemy
|
||||
pydantic
|
||||
pydantic_settings
|
||||
alembic
|
||||
aiosqlite
|
||||
|
||||
# Fetch external resources
|
||||
httpx
|
||||
|
||||
# Fetch title etc from links
|
||||
beautifulsoup4
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
# Core application
|
||||
fastapi[all]
|
||||
sqlmodel
|
||||
sqlalchemy
|
||||
pydantic
|
||||
pydantic_settings
|
||||
alembic
|
||||
aiosqlite
|
||||
|
||||
# Fetch external resources
|
||||
httpx
|
||||
|
||||
# Fetch title etc from links
|
||||
beautifulsoup4
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
"""Bookmark helper functions, like content scrapers, favicon extractor, updater functions."""
|
||||
|
||||
import logging
|
||||
from collections.abc import Sequence
|
||||
from datetime import UTC, datetime
|
||||
from typing import Annotated, Sequence
|
||||
from typing import Annotated
|
||||
from urllib.parse import urlparse, urlunparse
|
||||
|
||||
import bs4
|
||||
@@ -29,7 +30,7 @@ def get_favicon(html_content: str, root_url: str) -> str:
|
||||
# TODO: save the preferred image to file and return
|
||||
|
||||
|
||||
async def set_information_from_source(logger, bookmark: Bookmark, request: Request) -> Bookmark:
|
||||
async def set_information_from_source(bookmark: Bookmark, request: Request) -> Bookmark:
|
||||
"""Request the title by requesting the source url."""
|
||||
logger.info('Extracting information from url %s', bookmark.url)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user