From: Oleg Broytman Date: Tue, 10 Sep 2024 14:20:03 +0000 (+0300) Subject: Fix(get_url.py): Fix call to `robot.get_url` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e6355ed6d72983e03924a61fec8ec1817a027aed;p=bookmarks_db.git Fix(get_url.py): Fix call to `robot.get_url` --- diff --git a/get_url.py b/get_url.py index 065df91..c9b23e2 100755 --- a/get_url.py +++ b/get_url.py @@ -12,7 +12,7 @@ import argparse import asyncio import sys -from bkmk_objects import Bookmark +from Robots.base import request_headers def run(): @@ -29,11 +29,8 @@ def run(): robot = robot(sys.stdout.write) url = args.URL - bookmark = Bookmark(href=url, add_date=None) - bookmark.parent = None - error, redirect_code, redirect_to, headers, content = \ - asyncio.run(robot.get_url(bookmark, url, True)) + asyncio.run(robot.get_url(url, request_headers)) robot.stop() if error: