from tinyfish import TinyFish, BrowserProfile, ProxyConfig, ProxyCountryCode
client = TinyFish()
with client.agent.stream(
url="https://geo-restricted-site.com",
goal="Extract data",
browser_profile=BrowserProfile.STEALTH,
proxy_config=ProxyConfig(enabled=True, country_code=ProxyCountryCode.US),
) as stream:
for event in stream:
print(event)