mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 21:25:56 +08:00
GPT-4.1 Company Researcher
A Python tool that uses GPT-4.1, Firecrawl, and SerpAPI to research companies and extract structured information.
Features
- Search for company information using Google (via SerpAPI)
- Analyze search results with GPT-4.1 to identify relevant URLs
- Extract structured data from websites using Firecrawl
- Deduplicate and consolidate information for higher quality results
- Interactive command-line interface
Requirements
- Python 3.8+
- OpenAI API key (with GPT-4.1 access)
- Firecrawl API key
- SerpAPI key
Installation
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Copy the
.env.example
file to.env
and add your API keys:cp .env.example .env
- Edit the
.env
file with your actual API keys
Usage
Run the script:
python gpt-4.1-company-researcher.py
You will be prompted to:
- Enter a company name
- Specify what information you want about the company
The tool will then:
- Search for relevant information
- Select the most appropriate URLs using GPT-4.1
- Extract structured data using Firecrawl
- Deduplicate and consolidate the information
- Display the results in JSON format
Example
Enter the company name: Anthropic
Enter what information you want about the company: founders and funding details
# Results will display structured information about Anthropic's founders and funding
License
MIT