from tinyfish import TinyFish, EventType, RunStatusclient = TinyFish()with client.agent.stream( url="https://scrapeme.live/shop/Bulbasaur/", goal="Extract the product name, price, and stock status",) as stream: for event in stream: if event.type == EventType.COMPLETE and event.status == RunStatus.COMPLETED: print("Result:", event.result_json)
from tinyfish import TinyFishclient = TinyFish()with client.agent.stream( url="https://scrapeme.live/shop/", goal="Extract all products on this page. For each product return: name, price, and link",) as stream: for event in stream: print(event)
from tinyfish import TinyFish, BrowserProfileclient = TinyFish()with client.agent.stream( url="https://protected-site.com", goal="Extract product data", browser_profile=BrowserProfile.STEALTH,) as stream: for event in stream: print(event)