27 lines
No EOL
599 B
Python
27 lines
No EOL
599 B
Python
# -*- coding: utf-8 -*-
|
|
import sys
|
|
sys.path.append('..')
|
|
from capturer.capturer import CapturingTask, Capturer
|
|
|
|
|
|
|
|
def test_CapturingTask():
|
|
parameters = {'uuid': 'f31af60a-1feb-4770-bee9-0085c678f08f',
|
|
'ad_url': 'https://www.idealista.com/inmueble/81593047',
|
|
'fk_uuid_exploring': 'e5f9c8d5-b6e9-47fc-b4de-6d78f40feccc',
|
|
'status': 'Pending'}
|
|
|
|
task = CapturingTask(parameters)
|
|
|
|
task.capture()
|
|
print(task.get_ad_data())
|
|
|
|
|
|
def test_Capturer():
|
|
capturer = Capturer()
|
|
capturer.start()
|
|
|
|
|
|
# test_CapturingTask()
|
|
|
|
test_Capturer() |