From e6355ed6d72983e03924a61fec8ec1817a027aed Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 10 Sep 2024 17:20:03 +0300 Subject: [PATCH] Fix(get_url.py): Fix call to `robot.get_url` --- get_url.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: -- 2.39.5