12 lines
452 B
Python
Executable File
12 lines
452 B
Python
Executable File
from .harvester_base import BaseHarvester
|
|
|
|
class BikeHarvester(BaseHarvester):
|
|
def __init__(self):
|
|
super().__init__(category="motorcycle")
|
|
self.api_url = "https://api.example-bikes.com/v1/" # Példa forrás
|
|
|
|
async def harvest_all(self, db):
|
|
# Ide jön a motor-specifikus API hívás logikája
|
|
print("🏍️ Motor Robot: Adatgyűjtés indul...")
|
|
# ... fetch és mentés loop ...
|
|
await db.commit() |