mirror of
https://github.com/etienne-hd/lbc-finder.git
synced 2026-04-30 20:55:36 +02:00
Bump: lbc ->1.1.0
Changed: 'models' folder has been renamed to 'model'
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
from .search import Search
|
||||
from .parameters import Parameters
|
||||
@@ -1,24 +0,0 @@
|
||||
from typing import Optional, Union, List
|
||||
from lbc import Category, Region, Department, City, OwnerType
|
||||
|
||||
from typing import overload
|
||||
|
||||
class Parameters:
|
||||
@overload
|
||||
def __init__(
|
||||
self,
|
||||
url: Optional[str] = None,
|
||||
text: Optional[str] = None,
|
||||
category: Category = Category.TOUTES_CATEGORIES,
|
||||
locations: Optional[Union[List[Union[Region, Department, City]], Union[Region, Department, City]]] = None,
|
||||
limit: int = 35,
|
||||
limit_alu: int = 3,
|
||||
page: int = 1,
|
||||
owner_type: Optional[OwnerType] = None,
|
||||
shippable: Optional[bool] = None,
|
||||
search_in_title_only: bool = False,
|
||||
**kwargs
|
||||
): ...
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self._kwargs = kwargs
|
||||
@@ -1,12 +0,0 @@
|
||||
from lbc import Proxy, Ad
|
||||
from .parameters import Parameters
|
||||
from dataclasses import dataclass
|
||||
from typing import Callable
|
||||
|
||||
@dataclass
|
||||
class Search:
|
||||
name: str
|
||||
parameters: Parameters
|
||||
delay: float
|
||||
handler: Callable[[Ad, str], None]
|
||||
proxy: Proxy = None
|
||||
Reference in New Issue
Block a user