Code related to the PhaseLLM tutorial outlining how to extract structured data using Web Search Agents and LLMs.
You need API access to OpenAI and Google's Custom Search API.
After that, simply run...
python step1.py
to search the web and crawl the search resultspython step2.py
to extract data about restaurants from the abovepython step3.py
to conver the results into an Excel file
Note that this requires PhaseLLM version 0.0.14 or later.