fix imports, paths

price-scraper-ML-integration
dgtlmoon 5 months ago
parent 72579d8ea2
commit 5fa841637e

@ -102,7 +102,7 @@ jobs:
# PLAYWRIGHT/NODE-> CDP
- name: ML/AI Price element scraper via Playwright+dgtlmoon/changedetection.io-ai
run: |
docker run --rm -e "FLASK_SERVER_NAME=cdio" -e "PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000" -e "PLAYWRIGHT_DRIVER_URL=ws://PRICE_SCRAPER_ML_ENDPOINT:5005/price-element" --network changedet-network --hostname=cdio test-changedetectionio bash -c 'cd changedetectionio;pytest --live-server-host=0.0.0.0 --live-server-port=5004 tests/ai-price-scraper/test_scrape_price_element.py'
docker run --rm -e "FLASK_SERVER_NAME=cdio" -e "PLAYWRIGHT_DRIVER_URL=ws://sockpuppetbrowser:3000" -e "PLAYWRIGHT_DRIVER_URL=ws://cdio-ai-price-element:5005/price-element" --network changedet-network --hostname=cdio test-changedetectionio bash -c 'cd changedetectionio;pytest --live-server-host=0.0.0.0 --live-server-port=5004 tests/ml_price_scraper/test_scrape_price_element.py'
- name: Playwright and SocketPuppetBrowser - Restock detection
run: |

@ -8,7 +8,7 @@ from changedetectionio import changedetection_app
from changedetectionio import store
import os
import sys
from loguru import logger
# https://github.com/pallets/flask/blob/1.1.2/examples/tutorial/tests/test_auth.py
# Much better boilerplate than the docs

@ -1,6 +1,5 @@
#!/usr/bin/env python3
import time
from flask import url_for
from ..util import live_server_setup, wait_for_all_checks
import logging

@ -1,11 +1,11 @@
#!/usr/bin/env python3
import os
import time
from flask import url_for
from ..util import live_server_setup, wait_for_all_checks, extract_UUID_from_client
from changedetectionio.tests.util import set_original_response, set_modified_response, set_more_modified_response, live_server_setup, \
wait_for_all_checks, \
set_longer_modified_response
import time
# No semantic data just some text, we should be able to find the product price.
def set_response(price="121.95"):
Loading…
Cancel
Save