- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Jaysahnan/gro 418 business lookup template #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| ## QUICKSTART | ||
| 1) python -m venv venv | ||
| 2) source venv/bin/activate # On Windows: venv\Scripts\activate | ||
| 3) pip install stagehand python-dotenv pydantic | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we pushing uv?
| ## HELPFUL RESOURCES | ||
| 📚 Stagehand Docs: https://docs.stagehand.dev/stagehand | ||
| 🎮 Browserbase: https://www.browserbase.com | ||
| 💡 Templates: https://github.com/browserbase/stagehand/tree/main/examples | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this links to nothing, check other templates too
| ## COMMON PITFALLS | ||
| - "ModuleNotFoundError": ensure all dependencies are installed via pip | ||
| - Missing credentials: verify .env contains BROWSERBASE_PROJECT_ID, BROWSERBASE_API_KEY, and GOOGLE_API_KEY | ||
| - Google API access: ensure you have access to Google's gemini-2.5-computer-use-preview-10-2025 model | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link to their dashboard here.
| 
               | 
          ||
| # Business search variables | ||
| business_name = "Jalebi Street" | ||
| 
               | 
          
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra \n, we should use prettier or something for standardized templates
| 
               | 
          ||
| try: | ||
| # Use async context manager for automatic resource management | ||
| async with Stagehand(config) as stagehand: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code is a little weird, maybe just me but can have some others check this out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm ignore this
| @@ -0,0 +1,52 @@ | |||
| # Stagehand + Browserbase: Business Lookup with Agent | |||
| 
               | 
          |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comments as the one in the python one,
also just realized the python readme links to the TS repo which is not ideal either
| verbose: 1, | ||
| model: "openai/gpt-4.1", | ||
| browserbaseSessionCreateParams: { | ||
| projectId: process.env.BROWSERBASE_PROJECT_ID!, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to specify projectid if it's in our env vars already.
we can have this here but we should be consistent and also pass in the api key
| 
               | 
          ||
| console.log("Business Information:"); | ||
| console.log(JSON.stringify(businessInfo, null, 2)); | ||
| 
               | 
          
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
No description provided.