mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-04-27 19:35:35 +02:00
refactor(config): configuration file moved to /config.py to /config/*
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
from model import Search, Parameters
|
||||
import lbc
|
||||
|
||||
def handle(ad: lbc.Ad, search_name: str):
|
||||
print(f"[{search_name}] New ads!")
|
||||
print(f"Title : {ad.subject}")
|
||||
print(f"Price : {ad.price} €")
|
||||
print(f"URL : {ad.url}")
|
||||
print("-" * 40)
|
||||
from .handler import handle
|
||||
|
||||
location = lbc.City(
|
||||
lat=48.85994982004764,
|
||||
9
lbc-finder/config/handler.py
Normal file
9
lbc-finder/config/handler.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import lbc
|
||||
|
||||
def handle(ad: lbc.Ad, search_name: str):
|
||||
print(f"[{search_name}] New ads!")
|
||||
print(f"Title : {ad.subject}")
|
||||
print(f"Price : {ad.price} €")
|
||||
print(f"URL : {ad.url}")
|
||||
print("-" * 40)
|
||||
|
||||
Reference in New Issue
Block a user