Blog Post
عنوان المحادثة: import requestsfrom bs4 import BeautifulSoupimport randomimport timefr...
التاريخ: 10.12.2025
التصنيف: 💻 البرمجة وتطوير البرمجيات
إجمالي الرسائل: 5 | ياسر: 3 | M: 2
Yasser
import requestsfrom bs4 import BeautifulSoupimport randomimport timefrom concurrent.futures import ThreadPoolExecutor, as_completedimport threadingimport reimport asynciofrom playwright.async_api import async_playwrightfrom playwright.sync_api import sync_playwrightimport jsonfrom stem import Signalfrom stem.control import Controllerimport sqlite3import datetime
ياسر
import requestsfrom bs4 import BeautifulSoupimport randomimport timefrom concurrent.futures import ThreadPoolExecutor, as_completedimport threadingimport reimport asynciofrom playwright.async_api import async_playwrightfrom playwright.sync_api import sync_playwrightimport jsonfrom stem import Signalfrom stem.control import Controllerimport sqlite3import datetime
10.12.2025 02:01
M
❌ Error for B0FFB1XVW7 (attempt 1/3): 'PlaywrightContextManager' object has no attribute '_playwright' ❌ Error for B0FXV5P3BR (attempt 1/3): 'PlaywrightContextManager' object has no attribute '_playwright' ❌ Error for B0CCZ1HQ39 (attempt 1/3): Browser.close: Connection closed while reading from the driver ❌ Error for B07MMJ519B (attempt 1/3): Page.goto: Target page, context or browser has been closedCall log: - navigating to "https://www.amazon.sa/-/en/dp/B07MMJ519B/", waiting until "domcontentloaded" 🔄 تم طلب تغيير عنوان IP من Tor.Task exception was never retrievedfuture: Connection.run..init() done, defined at C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py:309> exception=Exception('Connection.init: Connection closed while reading from the driver')>Traceback (most recent call last): File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 310, in init self.playwright_future.set_result(await self._root_object.initialize()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 251, in initialize await self._channel.send( File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 69, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 559, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from NoneException: Connection.init: Connection closed while reading from the driverTask exception was never retrievedfuture: Connection.run..init() done, defined at C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py:309> exception=Exception('Connection.init: Connection closed while reading from the driver')>Traceback (most recent call last): File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 310, in init self.playwright_future.set_result(await self._root_object.initialize()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 251, in initialize await self._channel.send( File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 69, in send return await self._connection.wrap_api_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\miraz\AppData\Local\Programs\Python\Python312\Lib\site-packages\playwright\_impl\_connection.py", line 559, in wrap_api_call raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from NoneException: Connection.init: Connection closed while reading from the driver
10.12.2025 02:28