The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Docs: replace initialize agent with create react agent for google tools (#31043)
Haris Colic3e25a9313633
diff --git a/docs/docs/integrations/tools/google_drive.ipynb b/docs/docs/integrations/tools/google_drive.ipynbindex bc28a0597a..5bb20c8272 100644--- a/docs/docs/integrations/tools/google_drive.ipynb+++ b/docs/docs/integrations/tools/google_drive.ipynb@@ -16,7 +16,7 @@"1. `pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib`\n","\n","## Instructions for retrieving your Google Docs data\n",- "By default, the `GoogleDriveTools` and `GoogleDriveWrapper` expects the `credentials.json` file to be `~/.credentials/credentials.json`, but this is configurable using the `GOOGLE_ACCOUNT_FILE` environment variable. \n",+ "By default, the `GoogleDriveTools` and `GoogleDriveWrapper` expects the `credentials.json` file to be `~/.credentials/credentials.json`, but this is configurable by setting the `GOOGLE_ACCOUNT_FILE` environment variable to your `custom/path/to/credentials.json`. \n","The location of `token.json` use the same directory (or use the parameter `token_path`). Note that `token.json` will be created automatically the first time you use the tool.\n","\n","`GoogleDriveSearchTool` can retrieve a selection of files with some requests. \n",@@ -47,7 +47,7 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 1,"metadata": {},"outputs": [],"source": [@@ -88,7 +88,7 @@"metadata": {},"outputs": [],"source": [- "%pip install --upgrade --quiet unstructured"+ "%pip install --upgrade --quiet unstructured langchain-googledrive"]},{@@ -99,9 +99,13 @@},"outputs": [],"source": [+ "import os\n",+ "\n","from langchain_googledrive.tools.google_drive.tool import GoogleDriveSearchTool\n","from langchain_googledrive.utilities.google_drive import GoogleDriveAPIWrapper\n","\n",+ "os.environ[\"GOOGLE_ACCOUNT_FILE\"] = \"custom/path/to/credentials.json\"\n",+ "\n","# By default, search only in the filename.\n","tool = GoogleDriveSearchTool(\n"," api_wrapper=GoogleDriveAPIWrapper(\n",@@ -114,7 +118,7 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 3,"metadata": {},"outputs": [],"source": [@@ -134,52 +138,52 @@},{"cell_type": "code",- "execution_count": null,+ "execution_count": 5,"metadata": {},- "outputs": [],+ "outputs": [+ {+ "data": {+ "text/plain": [+ "\"A wrapper around Google Drive Search. Useful for when you need to find a document in google drive. The input should be formatted as a list of entities separated with a space. As an example, a list of keywords is 'hello word'.\""+ ]+ },+ "execution_count": 5,+ "metadata": {},+ "output_type": "execute_result"+ }+ ],"source": ["tool.description"]},{- "cell_type": "code",- "execution_count": null,+ "cell_type": "markdown","metadata": {},- "outputs": [],"source": [- "from langchain.agents import load_tools\n",- "\n",- "tools = load_tools(\n",- " [\"google-drive-search\"],\n",- " folder_id=folder_id,\n",- " template=\"gdrive-query-in-folder\",\n",- ")"+ "## Use the tool within a ReAct agent"]},{"cell_type": "markdown","metadata": {},"source": [- "## Use within an Agent"+ "In order to create an agent that uses the Google Jobs tool install Langgraph"]},{"cell_type": "code","execution_count": null,- "metadata": {- "tags": []- },+ "metadata": {},"outputs": [],"source": [- "from langchain.agents import AgentType, initialize_agent\n",- "from langchain_openai import OpenAI\n",- "\n",- "llm = OpenAI(temperature=0)\n",- "agent = initialize_agent(\n",- " tools=tools,\n",- " llm=llm,\n",- " agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,\n",- ")"+ "%pip install --upgrade --quiet langgraph langchain-openai"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "and use the `create_react_agent` functionality to initialize a ReAct agent. You will also need to set up your OPEN_API_KEY (visit https://platform.openai.com) in order to access OpenAI's chat models."]},{@@ -190,13 +194,29 @@},"outputs": [],"source": [- "agent.run(\"Search in google drive, who is 'Yann LeCun' ?\")"+ "import os\n",+ "\n",+ "from langchain.chat_models import init_chat_model\n",+ "from langgraph.prebuilt import create_react_agent\n",+ "\n",+ "os.environ[\"OPENAI_API_KEY\"] = \"your-openai-api-key\"\n",+ "\n",+ "\n",+ "llm = init_chat_model(\"gpt-4o-mini\", model_provider=\"openai\", temperature=0)\n",+ "agent = create_react_agent(llm, tools=[tool])\n",+ "\n",+ "events = agent.stream(\n",+ " {\"messages\": [(\"user\", \"Search in google drive, who is 'Yann LeCun' ?\")]},\n",+ " stream_mode=\"values\",\n",+ ")\n",+ "for event in events:\n",+ " event[\"messages\"][-1].pretty_print()"]}],"metadata": {"kernelspec": {- "display_name": "Python 3 (ipykernel)",+ "display_name": "venv","language": "python","name": "python3"},@@ -210,7 +230,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.10.12"+ "version": "3.12.7"}},"nbformat": 4,diff --git a/docs/docs/integrations/tools/google_finance.ipynb b/docs/docs/integrations/tools/google_finance.ipynbindex 315b4dae78..2a24395615 100644--- a/docs/docs/integrations/tools/google_finance.ipynb+++ b/docs/docs/integrations/tools/google_finance.ipynb@@ -6,38 +6,32 @@"source": ["# Google Finance\n","\n",- "This notebook goes over how to use the Google Finance Tool to get information from the Google Finance page\n",+ "This notebook goes over how to use the Google Finance Tool to get information from the Google Finance page.\n","\n","To get an SerpApi key key, sign up at: https://serpapi.com/users/sign_up.\n","\n",- "Then install google-search-results with the command: \n",- "\n",- "pip install google-search-results\n",- "\n",- "Then set the environment variable SERPAPI_API_KEY to your SerpApi key\n",- "\n",- "Or pass the key in as a argument to the wrapper serp_api_key=\"your secret key\""+ "To use the tool with Langchain install following packages"]},{- "cell_type": "markdown",+ "cell_type": "code",+ "execution_count": null,"metadata": {},+ "outputs": [],"source": [- "Use the Tool"+ "%pip install --upgrade --quiet google-search-results langchain-community"]},{- "cell_type": "code",- "execution_count": null,+ "cell_type": "markdown","metadata": {},- "outputs": [],"source": [- "%pip install --upgrade --quiet google-search-results langchain-community"+ "Then set the environment variable SERPAPI_API_KEY to your SerpApi key or pass the key in as a argument to the wrapper serp_api_key=\"your secret key\"."]},{"cell_type": "code",- "execution_count": 9,+ "execution_count": null,"metadata": {},"outputs": [],"source": [@@ -46,15 +40,26 @@"from langchain_community.tools.google_finance import GoogleFinanceQueryRun\n","from langchain_community.utilities.google_finance import GoogleFinanceAPIWrapper\n","\n",- "os.environ[\"SERPAPI_API_KEY\"] = \"\"\n",+ "os.environ[\"SERPAPI_API_KEY\"] = \"[your serpapi key]\"\n","tool = GoogleFinanceQueryRun(api_wrapper=GoogleFinanceAPIWrapper())"]},{"cell_type": "code",- "execution_count": null,+ "execution_count": 3,"metadata": {},- "outputs": [],+ "outputs": [+ {+ "data": {+ "text/plain": [+ "'\\nQuery: Google\\nstock: GOOGL:NASDAQ\\nprice: $161.96\\npercentage: 1.68\\nmovement: Up\\n'"+ ]+ },+ "execution_count": 3,+ "metadata": {},+ "output_type": "execute_result"+ }+ ],"source": ["tool.run(\"Google\")"]@@ -63,7 +68,7 @@"cell_type": "markdown","metadata": {},"source": [- "Using it with Langchain"+ "In order to create an agent that uses the Google Finance tool install Langgraph"]},{@@ -71,26 +76,77 @@"execution_count": null,"metadata": {},"outputs": [],+ "source": [+ "%pip install --upgrade --quiet langgraph langchain-openai"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "and use the `create_react_agent` functionality to initialize a ReAct agent. You will also need to set up your OPEN_API_KEY (visit https://platform.openai.com) in order to access OpenAI's chat models."+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [+ {+ "name": "stdout",+ "output_type": "stream",+ "text": [+ "================================\u001b[1m Human Message \u001b[0m=================================\n",+ "\n",+ "What is Google's stock?\n",+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",+ "Tool Calls:\n",+ " google_finance (call_u676mJAkdojgkW806ZGSE8mF)\n",+ " Call ID: call_u676mJAkdojgkW806ZGSE8mF\n",+ " Args:\n",+ " query: Google\n",+ "=================================\u001b[1m Tool Message \u001b[0m=================================\n",+ "Name: google_finance\n",+ "\n",+ "\n",+ "Query: Google\n",+ "stock: GOOGL:NASDAQ\n",+ "price: $161.96\n",+ "percentage: 1.68\n",+ "movement: Up\n",+ "\n",+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",+ "\n",+ "Google's stock (Ticker: GOOGL) is currently priced at $161.96, showing an increase of 1.68%.\n"+ ]+ }+ ],"source": ["import os\n","\n",- "from langchain.agents import AgentType, initialize_agent, load_tools\n",- "from langchain_openai import OpenAI\n",+ "from langchain.agents import load_tools\n",+ "from langchain.chat_models import init_chat_model\n",+ "from langgraph.prebuilt import create_react_agent\n",+ "\n",+ "os.environ[\"OPENAI_API_KEY\"] = \"[your openai key]\"\n",+ "os.environ[\"SERP_API_KEY\"] = \"[your serpapi key]\"\n","\n",- "os.environ[\"OPENAI_API_KEY\"] = \"\"\n",- "os.environ[\"SERP_API_KEY\"] = \"\"\n",- "llm = OpenAI()\n",+ "llm = init_chat_model(\"gpt-4o-mini\", model_provider=\"openai\")\n","tools = load_tools([\"google-scholar\", \"google-finance\"], llm=llm)\n",- "agent = initialize_agent(\n",- " tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True\n",+ "agent = create_react_agent(llm, tools)\n",+ "\n",+ "events = agent.stream(\n",+ " {\"messages\": [(\"user\", \"What is Google's stock?\")]},\n",+ " stream_mode=\"values\",\n",")\n",- "agent.run(\"what is google's stock\")"+ "for event in events:\n",+ " event[\"messages\"][-1].pretty_print()"]}],"metadata": {"kernelspec": {- "display_name": "Python 3",+ "display_name": "venv","language": "python","name": "python3"},@@ -104,7 +160,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.9.5"+ "version": "3.12.7"}},"nbformat": 4,diff --git a/docs/docs/integrations/tools/google_jobs.ipynb b/docs/docs/integrations/tools/google_jobs.ipynbindex 855fb4ec3f..2b34022516 100644--- a/docs/docs/integrations/tools/google_jobs.ipynb+++ b/docs/docs/integrations/tools/google_jobs.ipynb@@ -8,14 +8,12 @@"\n","This notebook goes over how to use the Google Jobs Tool to fetch current Job postings.\n","\n",- "First, you need to sign up for an `SerpApi key` key at: https://serpapi.com/users/sign_up.\n",+ "First, you need to sign up for an `SerpApi key` key at: https://serpapi.com/users/sign_up and get your api key here: https://serpapi.com/manage-api-key.\n","\n","Then you must install `google-search-results` with the command:\n"," `pip install google-search-results`\n","\n",- "Then you will need to set the environment variable `SERPAPI_API_KEY` to your `SerpApi key`\n",- "\n",- "If you don't have one you can register a free account on https://serpapi.com/users/sign_up and get your api key here: https://serpapi.com/manage-api-key\n"+ "Then you will need to set the environment variable `SERPAPI_API_KEY` to your `SerpApi key`\n"]},{@@ -85,7 +83,7 @@{"data": {"text/plain": [- "\"\\n_______________________________________________\\nJob Title: Applied Physicist (Experienced or Senior)\\nCompany Name: Boeing\\nLocation: Huntington Beach, CA \\nDescription: Job Description\\n\\nAt Boeing, we innovate and collaborate to make the world a better place. From the seabed to outer space, you can contribute to work that matters with a company where diversity, equity and inclusion are shared values. We’re committed to fostering an environment for every teammate that’s welcoming, respectful and inclusive, with great opportunity for professional growth. Find your... future with us.\\n\\nWe are Boeing Research & Technology (BR&T): Boeing's global research and development team creating and implementing innovative technologies that make the impossible possible and enabling the future of aerospace. We are engineers and technicians, skilled scientists and bold innovators; Join us and put your passion, determination, and skill to work building the future!\\n\\nCome join a growing team harnessing emerging technology into innovative products and services. Boeing is at the forefront of re-imagining the future of the design, manufacture, and operation of aerospace platforms for commercial and government markets.\\n\\nThis position will sit in Huntington Beach, CA.\\n\\nPosition Responsibilities:\\n• Develop and validate requirements for various complex communication, sensor, electronic warfare and other electromagnetic systems and components.\\n• Develop and validate electromagnetic requirements for electrical\\\\electronic systems, mechanical systems, interconnects and structures.\\n• Develop architectures to integrate complex systems and components into higher level systems and platforms.\\n• Perform complicated trade studies, modeling, simulation and other forms of analysis to predict component, interconnects and system performance and to optimize design around established requirements.\\n• Define and conducts critical tests of various kinds to validate performance of designs to requirements. Manage appropriate aspects of critical supplier and partner performance to ensure compliance to requirements.\\n• Provide support to products throughout their lifecycle from manufacturing to customer use by providing guidance and support to resolve complex issues.\\n• Support project management by providing coordinating development of work statement, budget, schedule and other required inputs and conducting appropriate reviews.\\n• Generates major sections of proposals to support development of new business.\\n• Works under minimal direction.\\n\\nApplied Physicist (Experienced or Senior), BR&T/Advanced Computing Technology – Candidates will apply their knowledge of quantum physics to build a comprehensive suite of capabilities in experimental quantum sensing or quantum networking. Successful candidates will have a deep understanding of both theory and laboratory practices in at least one of the following areas:\\n• optical clocks\\n• optical time transfer\\n• optical frequency comb-based metrology\\n• quantum network-based entanglement of quantum systems (e.g., atomic, ionic, or quantum dot systems)\\n\\nSuccessful candidates shall develop\\n• A vibrant research and development program supported by both intramural and extramural funding\\n• Write project proposals\\n• Develop future product concepts\\n• Assist with the integration of quantum technologies into future products and services for Boeing’s commercial and defense businesses\\n\\nThis position allows telecommuting. The selected candidate will be required to perform some work onsite at one of the listed location options.\\n\\nThis position requires the ability to obtain a U.S. Security Clearance for which the U.S. Government requires U.S. Citizenship. An interim and/or final U.S. Secret Clearance Post-Start is required.\\n\\nBasic Qualifications (Required Skills/Experience)\\n• PhD in physics, chemistry, electrical engineering, or other field related to quantum sensing and/or quantum information science\\n• Authored and published Research papers and projects (Academia or Professional)\\n• University Studies and laboratory practice in one of the following areas: optical clocks, optical time transfer, atom interferometry, or quantum network-based entanglement of quantum systems (e.g., atomic, ionic, or quantum dot systems)\\n\\nPreferred Qualifications (Desired Skills/Experience)\\n• 9+ years' related work experience or an equivalent combination of education and experience\\n• Active U.S. security clearance\\n\\nTypical Education/Experience:\\n\\nExperienced: Education/experience typically acquired through advanced technical education from an accredited course of study in engineering, computer science, mathematics, physics or chemistry (e.g. Bachelor) and typically 9 or more years' related work experience or an equivalent combination of technical education and experience (e.g. PhD+4 years' related work experience, Master+7 years' related work experience). In the USA, ABET accreditation is the preferred, although not required, accreditation standard\\n\\nSenior: Education/experience typically acquired through advanced technical education from an accredited course of study in engineering, computer science, mathematics, physics or chemistry (e.g. Bachelor) and typically 14 or more years' related work experience or an equivalent combination of technical education and experience (e.g. PhD+9 years' related work experience, Master+12 years' related work experience). In the USA, ABET accreditation is the preferred, although not required, accreditation standard.\\n\\nRelocation: This position offers relocation based on candidate eligibility\\n\\nBoeing is a Drug Free Workplace where post offer applicants and employees are subject to testing for marijuana, cocaine, opioids, amphetamines, PCP, and alcohol when criteria is met as outlined in our policies.\\n\\nShift: This position is for first shift.\\n\\nAt Boeing, we strive to deliver a Total Rewards package that will attract, engage and retain the top talent. Elements of the Total Rewards package include competitive base pay and variable compensation opportunities.\\n\\nThe Boeing Company also provides eligible employees with an opportunity to enroll in a variety of benefit programs, generally including health insurance, flexible spending accounts, health savings accounts, retirement savings plans, life and disability insurance programs, and a number of programs that provide for both paid and unpaid time away from work.\\n\\nThe specific programs and options available to any given employee may vary depending on eligibility factors such as geographic location, date of hire, and the applicability of collective bargaining agreements.\\n\\nPlease note that the salary information shown below is a general guideline only. Salaries are based upon candidate experience and qualifications, as well as market and business considerations.\\n\\nSummary pay range Experienced: $126,000 – $171,000\\n\\nSummary pay range Senior: $155,000 - $210,00\\n\\nExport Control Requirements: U.S. Government Export Control Status: This position must meet export control compliance requirements. To meet export control compliance requirements, a “U.S. Person” as defined by 22 C.F.R. §120.15 is required. “U.S. Person” includes U.S. Citizen, lawful permanent resident, refugee, or asylee.\\n\\nExport Control Details: US based job, US Person required\\n\\nEqual Opportunity Employer:\\n\\nBoeing is an Equal Opportunity Employer. Employment decisions are made without regard to race, color, religion, national origin, gender, sexual orientation, gender identity, age, physical or mental disability, genetic factors, military/veteran status or other characteristics protected by law\\n_______________________________________________\\n\\n\""+ "'\\n_______________________________________________\\nJob Title: Entry Level Mechanical, Electrical, Physics Engineer for Controls PLC programing\\nCompany Name: Quest Global\\nLocation: Schenectady, NY\\nDescription: Job Requirements\\n\\nMechanical, Electrical, thermal and computer network engineers in developing control systems. The team works together closely in programing and testing control logic for industrial systems. The team will use simulations to test and represent real world operational conditions of electrical power plants.\\n\\nJob functions include:\\n• Desired Experience in programming controllers, like an Arduino, Allen Bradly, Siemens, GE Vie or any Industrial controllers with HMI interface.\\n• Working knowledge of instrumentation circuits, ex thermocouples, pressure transmitters,\\n• Reading logic diagrams and programing ladder logic from them\\n• Reviewing wiring diagrams for instrumentation installs\\n• Interpret P&ID/Electrical Schematics and experience with basic instrumentation.\\n• Collaborate with design engineers of various disciplines to develop control system requirements\\n• Support Field Engineering Services in technical resolution of field problems\\n• Providing input to quality assurance on projects\\n• Review and interpret customer specifications on mechanical systems\\n• Operational Knowledge of Steam or Gas Turbine Power Plants\\n• Ability to interpret functional requirements and translate into control logic.\\n• Ability to interpret P&ID/Electrical Schematics and experience with basic instrumentation\\n\\nRequired Skills and Experience\\n• Preferred Hands-on experience programming controllers, GE Mark V, VI, VIe series turbine control and Cimplicity HMI software or other industry related controllers like Audrino, LabView.\\n• Demonstrate experience working in the industrial controls or power generation industry\\n• Have a fundamental understanding of Steam Turbine and Power Plant construction\\n• Technical skills in engineering design and construction practices\\n• Proven team player with solid cooperation, flexibility and demonstrated capacity to learn complex information quickly\\n• Field experience in related equipment\\n• Strong organizational / project execution skills and prior success in working with or leading cross-functional teams\\n• Strong interpersonal skills with the ability to influence and lead others\\n• Passion for continuous learning and applying best practices to achieve practical solutions\\n\\nWork Experience\\n\\nSkills\\n• instrumentation\\n• ladder logic\\n• control systems\\n• electrical schematics\\n• control system\\n• programming controllers\\n• control\\n• collaborate\\n• quality assurance\\n• best practices\\n• wiring diagrams\\n• functional requirements\\n• industrial electrical controls\\n• project execution\\n• engineering design\\n• instrumentation circuits\\n• technical\\n• power plant construction\\n• electrical controls\\n• cross-functional teams\\n• continuous learning\\n• strong organizational\\n• mechanical systems\\n• technical skills\\n_______________________________________________\\n\\n'"]},"execution_count": 2,@@ -101,121 +99,143 @@"cell_type": "markdown","metadata": {},"source": [- "# use it with langchain"+ "# Use the tool within a ReAct agent"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "In order to create an agent that uses the Google Jobs tool install Langgraph"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "%pip install --upgrade --quiet langgraph langchain-openai"+ ]+ },+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "and use the `create_react_agent` functionality to initialize a ReAct agent. You will also need to set up your OPEN_API_KEY (visit https://platform.openai.com) in order to access OpenAI's chat models."]},{"cell_type": "code",- "execution_count": 6,+ "execution_count": null,"metadata": {},"outputs": [{"name": "stdout","output_type": "stream","text": [+ "================================\u001b[1m Human Message \u001b[0m=================================\n","\n",+ "Give me an entry level job posting related to physics?\n",+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n",+ "Tool Calls:\n",+ " google_jobs (call_PoViomaLqoCRXqNmxe7YDKTN)\n",+ " Call ID: call_PoViomaLqoCRXqNmxe7YDKTN\n",+ " Args:\n",+ " query: entry level physics job\n",+ "=================================\u001b[1m Tool Message \u001b[0m=================================\n",+ "Name: google_jobs\n","\n",- "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",- "\u001b[32;1m\u001b[1;3m I should use a tool to search for job postings related to physics\n",- "Action: google_jobs\n",- "Action Input: entry level physics\u001b[0m\n",- "Observation: \u001b[36;1m\u001b[1;3m\n",- "_______________________________________________\n",- "Job Title: Entry-level Calibration Technician (great for new Physics or EE grads)\n",- "Company Name: Modis Engineering\n",- "Location: Everett, WA \n",- "Description: An Electronics Calibration Technician Contract-to-Hire position is available in Everett, WA courtesy of Akkodis.\n",- "\n",- "This is a great opportunity for Entry-level Physics, BSEET, BSEE, Mechatronics or other grads who like hands-on work. Or for a technician with 1-5 years of experience...\n","\n",- "Shift : Evening Shift or Night Shift\n",- "\n",- "Rate: $28 - $32/hour, D.O.E.\n",- "\n",- "It is possible, with strong performance, of increasing your rate by $2/hour once position converts to Full Time/Salaried/Direct Hire position.\n",- "• **FULL TRAINING WILL BE PROVIDED***\n",- "\n",- "Job Responsibilities include:\n",- "\n",- "- Calibration and testing of fiber optic test equipment.\n",- "\n",- "- Record data gathered during calibration.\n",+ "_______________________________________________\n",+ "Job Title: New Grad - Math / Physics Background\n",+ "Company Name: Bits to Atoms (YC S24)\n",+ "Location: San Francisco, CA\n",+ "Description: We are working with Canopy Labs to hire a new grad with a strong background in math or physics to join the team. You can learn more about Canopy Labs here.\n","\n",- "- Identify out of tolerance conditions.\n",+ "Company Overview\n","\n",- "- Interact with other technicians, customer service reps and customers.\n",+ "Canopy Labs is building digital humans that can:\n",+ "• Hold real-time, multimodal video interactions that look and sound ultra-realistic\n",+ "• Intelligently control their body: write, gesticulate, clap, etc.\n",+ "• Exhibit spatial awareness: walk around and interact with their environment\n","\n",- "Qualifications:\n",+ "Their mission is to bring virtual humans to life through cutting-edge generative models, enabling natural, embodied AI interactions at scale.\n","\n",- "- BS in Physics or Electrical Engineering -- OR -- - A.S. degree in electronics (or similar discipline) -- OR -- Electronics experience.\n",+ "What We're Looking For\n",+ "• Strong programming skills in Python\n",+ "• Excited by ML research and solving really hard problems\n",+ "• Can ship really, really fast\n",+ "• Experienced with cloud platforms (AWS, GCP, Azure)\n","\n",- "- Must possess good written and oral, communications skills.\n",+ "Nice to Haves\n",+ "• Experience with training and model deployment\n",+ "• Contributions to open-source ML projects\n","\n",- "- Basic circuit testing/troubleshooting experience from school lab work or elsewhere.\n",+ "It’s ok if you don’t have much practical experience yet – we want to find exceptional individuals, even if you have demonstrated your abilities in non-professional settings. For example, if you have built a bunch of side projects and just love making things work, or even competed in math or physics competitions, we want to speak with you.\n","\n",- "- Must have basic computer skills.\n",+ "We're looking forward to hearing from you soon!\n",+ "_______________________________________________\n","\n",- "- Prior experience in calibration is a plus.\n","\n",- "- Experience with fiber optics and metrology equipment a plus.\n",+ "==================================\u001b[1m Ai Message \u001b[0m==================================\n","\n",- "- This position does not involve troubleshooting as a repair tech though experience in this area is acceptable and helpful.\n",+ "Here's an entry-level job posting related to physics:\n","\n",- "- This position does require a good work ethic and willingness to learn and succeed.\n",+ "**Job Title:** New Grad - Math / Physics Background \n",+ "**Company Name:** Bits to Atoms (YC S24) \n",+ "**Location:** San Francisco, CA \n","\n",- "Equal Opportunity Employer/Veterans/Disabled\n",+ "**Description:** \n",+ "We are working with Canopy Labs to hire a new grad with a strong background in math or physics to join the team. Canopy Labs is building digital humans that can:\n",+ "- Hold real-time, multimodal video interactions that look and sound ultra-realistic.\n",+ "- Intelligently control their body: write, gesticulate, clap, etc.\n",+ "- Exhibit spatial awareness: walk around and interact with their environment.\n","\n",- "Benefit offerings include medical, dental, vision, FSA, HSA, and short-term and long term disability insurance, and 401K plan. It also includes a comprehensive paid time off program.\n",+ "Their mission is to bring virtual humans to life through cutting-edge generative models, enabling natural, embodied AI interactions at scale.\n","\n",- "Disclaimer: These benefit offerings do not apply to client-recruited jobs and jobs which are direct hire to a client.\n",+ "**What We're Looking For:**\n",+ "- Strong programming skills in Python.\n",+ "- Excited by ML research and solving really hard problems.\n",+ "- Can ship really, really fast.\n",+ "- Experienced with cloud platforms (AWS, GCP, Azure).\n","\n",- "To read our Candidate Privacy Information Statement, which explains how we will use your information, please visit https://www.modis.com/en-us/candidate-privacy\n",- "_______________________________________________\n",+ "**Nice to Haves:**\n",+ "- Experience with training and model deployment.\n",+ "- Contributions to open-source ML projects.\n","\n",- "\u001b[0m\n",- "Thought:\u001b[32;1m\u001b[1;3m I now know the final answer\n",- "Final Answer: The entry-level job posting related to physics is for a Calibration Technician at Modis Engineering in Everett, WA. This job offers a competitive rate of $28 - $32/hour, and full training will be provided. Qualifications include a BS in Physics or Electrical Engineering, or A.S. degree in Electronics or similar discipline, and benefits include medical, dental, vision, and more.\u001b[0m\n",+ "It’s ok if you don’t have much practical experience yet – we want to find exceptional individuals, even if you have demonstrated your abilities in non-professional settings. For example, if you have built a bunch of side projects and just love making things work, or even competed in math or physics competitions, we want to speak with you.\n","\n",- "\u001b[1m> Finished chain.\u001b[0m\n"+ "We're looking forward to hearing from you soon!\n"]- },- {- "data": {- "text/plain": [- "'The entry-level job posting related to physics is for a Calibration Technician at Modis Engineering in Everett, WA. This job offers a competitive rate of $28 - $32/hour, and full training will be provided. Qualifications include a BS in Physics or Electrical Engineering, or A.S. degree in Electronics or similar discipline, and benefits include medical, dental, vision, and more.'"- ]- },- "execution_count": 6,- "metadata": {},- "output_type": "execute_result"}],"source": ["import os\n","\n",- "from langchain.agents import AgentType, initialize_agent, load_tools\n",- "from langchain_openai import OpenAI\n",+ "from langchain.agents import load_tools\n",+ "from langchain.chat_models import init_chat_model\n",+ "from langgraph.prebuilt import create_react_agent\n","\n",- "OpenAI.api_key = os.environ[\"OPENAI_API_KEY\"]\n",- "llm = OpenAI()\n",+ "os.environ[\"OPENAI_API_KEY\"] = \"[your openai key]\"\n",+ "os.environ[\"SERP_API_KEY\"] = \"[your serpapi key]\"\n",+ "\n",+ "llm = init_chat_model(\"gpt-4o-mini\", model_provider=\"openai\")\n","tools = load_tools([\"google-jobs\"], llm=llm)\n",- "agent = initialize_agent(\n",- " tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True\n",+ "agent = create_react_agent(llm, tools)\n",+ "\n",+ "events = agent.stream(\n",+ " {\"messages\": [(\"user\", \"Give me an entry level job posting related to physics?\")]},\n",+ " stream_mode=\"values\",\n",")\n",- "agent.run(\"give me an entry level job posting related to physics\")"+ "for event in events:\n",+ " event[\"messages\"][-1].pretty_print()"]- },- {- "cell_type": "code",- "execution_count": null,- "metadata": {},- "outputs": [],- "source": []}],"metadata": {"kernelspec": {- "display_name": "Python 3 (ipykernel)",+ "display_name": "venv","language": "python","name": "python3"},@@ -229,7 +249,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.10.13"+ "version": "3.12.7"}},"nbformat": 4,diff --git a/docs/docs/integrations/tools/google_serper.ipynb b/docs/docs/integrations/tools/google_serper.ipynbindex 3ea5265635..5ddaba6ec9 100644--- a/docs/docs/integrations/tools/google_serper.ipynb+++ b/docs/docs/integrations/tools/google_serper.ipynb@@ -17,12 +17,12 @@"metadata": {},"outputs": [],"source": [- "%pip install --upgrade --quiet langchain-community"+ "%pip install --upgrade --quiet langchain-community langchain-openai"]},{"cell_type": "code",- "execution_count": 11,+ "execution_count": 1,"id": "a8acfb24","metadata": {"ExecuteTime": {@@ -42,7 +42,7 @@"import os\n","import pprint\n","\n",- "os.environ[\"SERPER_API_KEY\"] = \"\""+ "os.environ[\"SERPER_API_KEY\"] = \"your-serper-api-key\""]},{@@ -57,27 +57,14 @@},"outputs": [],"source": [- "from langchain_community.utilities import GoogleSerperAPIWrapper"- ]- },- {- "cell_type": "code",- "execution_count": 3,- "id": "31f8f382",- "metadata": {- "ExecuteTime": {- "end_time": "2023-05-04T00:54:08.324245Z",- "start_time": "2023-05-04T00:54:08.321577Z"- }- },- "outputs": [],- "source": [+ "from langchain_community.utilities import GoogleSerperAPIWrapper\n",+ "\n","search = GoogleSerperAPIWrapper()"]},{"cell_type": "code",- "execution_count": 4,+ "execution_count": 3,"id": "25ce0225","metadata": {"ExecuteTime": {@@ -92,7 +79,7 @@"'Barack Hussein Obama II'"]},- "execution_count": 4,+ "execution_count": 3,"metadata": {},"output_type": "execute_result"}@@ -106,89 +93,71 @@"id": "1f1c6c22","metadata": {},"source": [- "## As part of a Self Ask With Search Chain"+ "## As part of a Self Ask With Search Agent"+ ]+ },+ {+ "cell_type": "markdown",+ "id": "554358b2",+ "metadata": {},+ "source": [+ "In order to create an agent that uses the Google Serper tool install Langgraph"]},{"cell_type": "code",- "execution_count": 5,- "id": "c1b5edd7",- "metadata": {- "ExecuteTime": {- "end_time": "2023-05-04T00:54:14.311773Z",- "start_time": "2023-05-04T00:54:14.304389Z"- },- "collapsed": false,- "jupyter": {- "outputs_hidden": false- }- },+ "execution_count": null,+ "id": "495c301e",+ "metadata": {},"outputs": [],"source": [- "os.environ[\"OPENAI_API_KEY\"] = \"\""+ "%pip install --upgrade --quiet langgraph langchain-openai"+ ]+ },+ {+ "cell_type": "markdown",+ "id": "2eb1b45b",+ "metadata": {},+ "source": [+ "and use the `create_react_agent` functionality to initialize a ReAct agent. You will also need to set up your OPEN_API_KEY (visit https://platform.openai.com) in order to access OpenAI's chat models."]},{"cell_type": "code",- "execution_count": 5,- "id": "a8ccea61",- "metadata": {- "collapsed": false,- "jupyter": {- "outputs_hidden": false- }- },- "outputs": [- {- "name": "stdout",- "output_type": "stream",- "text": [- "\n",- "\n",- "\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",- "\u001b[32;1m\u001b[1;3m Yes.\n",- "Follow up: Who is the reigning men's U.S. Open champion?\u001b[0m\n",- "Intermediate answer: \u001b[36;1m\u001b[1;3mCurrent champions Carlos Alcaraz, 2022 men's singles champion.\u001b[0m\n",- "\u001b[32;1m\u001b[1;3mFollow up: Where is Carlos Alcaraz from?\u001b[0m\n",- "Intermediate answer: \u001b[36;1m\u001b[1;3mEl Palmar, Spain\u001b[0m\n",- "\u001b[32;1m\u001b[1;3mSo the final answer is: El Palmar, Spain\u001b[0m\n",- "\n",- "\u001b[1m> Finished chain.\u001b[0m\n"- ]- },- {- "data": {- "text/plain": [- "'El Palmar, Spain'"- ]- },- "execution_count": 5,- "metadata": {},- "output_type": "execute_result"- }- ],+ "execution_count": null,+ "id": "d8da2067",+ "metadata": {},+ "outputs": [],"source": [- "from langchain.agents import AgentType, initialize_agent\n",+ "from langchain.chat_models import init_chat_model\n","from langchain_community.utilities import GoogleSerperAPIWrapper\n","from langchain_core.tools import Tool\n",- "from langchain_openai import OpenAI\n",+ "from langgraph.prebuilt import create_react_agent\n",+ "\n",+ "os.environ[\"OPENAI_API_KEY\"] = \"[your openai key]\"\n","\n",- "llm = OpenAI(temperature=0)\n",+ "llm = init_chat_model(\"gpt-4o-mini\", model_provider=\"openai\", temperature=0)\n","search = GoogleSerperAPIWrapper()\n","tools = [\n"," Tool(\n",- " name=\"Intermediate Answer\",\n",+ " name=\"Intermediate_Answer\",\n"," func=search.run,\n"," description=\"useful for when you need to ask with search\",\n"," )\n","]\n",+ "agent = create_react_agent(llm, tools)\n","\n",- "self_ask_with_search = initialize_agent(\n",- " tools, llm, agent=AgentType.SELF_ASK_WITH_SEARCH, verbose=True\n",+ "events = agent.stream(\n",+ " {\n",+ " \"messages\": [\n",+ " (\"user\", \"What is the hometown of the reigning men's U.S. Open champion?\")\n",+ " ]\n",+ " },\n",+ " stream_mode=\"values\",\n",")\n",- "self_ask_with_search.run(\n",- " \"What is the hometown of the reigning men's U.S. Open champion?\"\n",- ")"+ "\n",+ "for event in events:\n",+ " event[\"messages\"][-1].pretty_print()"]},{@@ -225,151 +194,135 @@"{'searchParameters': {'q': 'Apple Inc.',\n"," 'gl': 'us',\n"," 'hl': 'en',\n",+ " 'type': 'search',\n"," 'num': 10,\n",- " 'type': 'search'},\n",+ " 'engine': 'google'},\n"," 'knowledgeGraph': {'title': 'Apple',\n"," 'type': 'Technology company',\n"," 'website': 'http://www.apple.com/',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQwGQRv5TjjkycpctY66mOg_e2-npacrmjAb6_jAWhzlzkFE3OTjxyzbA&s=0',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT5ITHsQzdzkkFWKinRe1Y4FUbC_Vy3R_M&s=0',\n"," 'description': 'Apple Inc. is an American multinational '\n",- " 'technology company headquartered in '\n",- " 'Cupertino, California. Apple is the '\n",- " \"world's largest technology company by \"\n",- " 'revenue, with US$394.3 billion in 2022 '\n",- " 'revenue. As of March 2023, Apple is the '\n",- " \"world's biggest...\",\n",+ " 'corporation and technology company '\n",+ " 'headquartered in Cupertino, California, in '\n",+ " 'Silicon Valley. It is best known for its '\n",+ " 'consumer electronics, software, and '\n",+ " 'services.',\n"," 'descriptionSource': 'Wikipedia',\n"," 'descriptionLink': 'https://en.wikipedia.org/wiki/Apple_Inc.',\n"," 'attributes': {'Customer service': '1 (800) 275-2273',\n",- " 'CEO': 'Tim Cook (Aug 24, 2011–)',\n",- " 'Headquarters': 'Cupertino, CA',\n",+ " 'Founders': 'Steve Jobs, Steve Wozniak, and '\n",+ " 'Ronald Wayne',\n"," 'Founded': 'April 1, 1976, Los Altos, CA',\n",- " 'Founders': 'Steve Jobs, Steve Wozniak, '\n",- " 'Ronald Wayne, and more',\n",- " 'Products': 'iPhone, iPad, Apple TV, and '\n",- " 'more'}},\n",+ " 'Headquarters': 'Cupertino, CA',\n",+ " 'CEO': 'Tim Cook (Aug 24, 2011–)'}},\n"," 'organic': [{'title': 'Apple',\n"," 'link': 'https://www.apple.com/',\n"," 'snippet': 'Discover the innovative world of Apple and shop '\n"," 'everything iPhone, iPad, Apple Watch, Mac, and Apple '\n"," 'TV, plus explore accessories, entertainment, ...',\n",- " 'sitelinks': [{'title': 'Support',\n",+ " 'sitelinks': [{'title': 'Career Opportunities',\n",+ " 'link': 'https://www.apple.com/careers/us/'},\n",+ " {'title': 'Support',\n"," 'link': 'https://support.apple.com/'},\n",- " {'title': 'iPhone',\n",- " 'link': 'https://www.apple.com/iphone/'},\n",- " {'title': 'Site Map',\n",- " 'link': 'https://www.apple.com/sitemap/'},\n",- " {'title': 'Business',\n",- " 'link': 'https://www.apple.com/business/'},\n",- " {'title': 'Mac',\n",- " 'link': 'https://www.apple.com/mac/'},\n",- " {'title': 'Watch',\n",- " 'link': 'https://www.apple.com/watch/'}],\n",+ " {'title': 'Investor Relations',\n",+ " 'link': 'https://investor.apple.com/investor-relations/default.aspx'},\n",+ " {'title': 'Apple Leadership',\n",+ " 'link': 'https://www.apple.com/leadership/'},\n",+ " {'title': 'Store',\n",+ " 'link': 'https://www.apple.com/store'}],\n"," 'position': 1},\n"," {'title': 'Apple Inc. - Wikipedia',\n"," 'link': 'https://en.wikipedia.org/wiki/Apple_Inc.',\n",- " 'snippet': 'Apple Inc. is an American multinational technology '\n",- " 'company headquartered in Cupertino, California. '\n",- " \"Apple is the world's largest technology company by \"\n",- " 'revenue, ...',\n",- " 'attributes': {'Products': 'AirPods; Apple Watch; iPad; iPhone; '\n",- " 'Mac; Full list',\n",- " 'Founders': 'Steve Jobs; Steve Wozniak; Ronald '\n",- " 'Wayne; Mike Markkula'},\n",- " 'sitelinks': [{'title': 'History',\n",- " 'link': 'https://en.wikipedia.org/wiki/History_of_Apple_Inc.'},\n",- " {'title': 'Timeline of Apple Inc. products',\n",- " 'link': 'https://en.wikipedia.org/wiki/Timeline_of_Apple_Inc._products'},\n",- " {'title': 'Litigation involving Apple Inc.',\n",- " 'link': 'https://en.wikipedia.org/wiki/Litigation_involving_Apple_Inc.'},\n",- " {'title': 'Apple Store',\n",- " 'link': 'https://en.wikipedia.org/wiki/Apple_Store'}],\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRvmB5fT1LjqpZx02UM7IJq0Buoqt0DZs_y0dqwxwSWyP4PIN9FaxuTea0&s',\n",- " 'position': 2},\n",- " {'title': 'Apple Inc. | History, Products, Headquarters, & Facts '\n",- " '| Britannica',\n",- " 'link': 'https://www.britannica.com/topic/Apple-Inc',\n",- " 'snippet': 'Apple Inc., formerly Apple Computer, Inc., American '\n",- " 'manufacturer of personal computers, smartphones, '\n",- " 'tablet computers, computer peripherals, and computer '\n",+ " 'snippet': 'Apple Inc. is an American multinational corporation '\n",+ " 'and technology company headquartered in Cupertino, '\n",+ " 'California, in Silicon Valley. It is best known for '\n"," '...',\n",- " 'attributes': {'Related People': 'Steve Jobs Steve Wozniak Jony '\n",- " 'Ive Tim Cook Angela Ahrendts',\n",- " 'Date': '1976 - present'},\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS3liELlhrMz3Wpsox29U8jJ3L8qETR0hBWHXbFnwjwQc34zwZvFELst2E&s',\n",+ " 'position': 2},\n",+ " {'title': 'Apple Inc. (AAPL) Stock Price Today - WSJ',\n",+ " 'link': 'https://www.wsj.com/market-data/quotes/AAPL',\n",+ " 'snippet': 'Apple Inc. engages in the design, manufacture, and '\n",+ " 'sale of smartphones, personal computers, tablets, '\n",+ " 'wearables and accessories, and other varieties of '\n",+ " 'related ...',\n"," 'position': 3},\n",- " {'title': 'AAPL: Apple Inc Stock Price Quote - NASDAQ GS - '\n",- " 'Bloomberg.com',\n",- " 'link': 'https://www.bloomberg.com/quote/AAPL:US',\n",- " 'snippet': 'AAPL:USNASDAQ GS. Apple Inc. COMPANY INFO ; Open. '\n",- " '170.09 ; Prev Close. 169.59 ; Volume. 48,425,696 ; '\n",- " 'Market Cap. 2.667T ; Day Range. 167.54170.35.',\n",+ " {'title': 'Apple Inc. | History, Products, Headquarters, & Facts '\n",+ " '- Britannica',\n",+ " 'link': 'https://www.britannica.com/money/Apple-Inc',\n",+ " 'snippet': 'American manufacturer of personal computers, '\n",+ " 'smartphones, and tablet computers. Apple was the '\n",+ " 'first successful personal computer company and ...',\n",+ " 'date': '5 days ago',\n"," 'position': 4},\n"," {'title': 'Apple Inc. (AAPL) Company Profile & Facts - Yahoo '\n"," 'Finance',\n"," 'link': 'https://finance.yahoo.com/quote/AAPL/profile/',\n",- " 'snippet': 'Apple Inc. designs, manufactures, and markets '\n",- " 'smartphones, personal computers, tablets, wearables, '\n",- " 'and accessories worldwide. The company offers '\n",- " 'iPhone, a line ...',\n",+ " 'snippet': 'See the company profile for Apple Inc. (AAPL) '\n",+ " 'including business summary, industry/sector '\n",+ " 'information, number of employees, business summary, '\n",+ " '...',\n"," 'position': 5},\n",- " {'title': 'Apple Inc. (AAPL) Stock Price, News, Quote & History - '\n",- " 'Yahoo Finance',\n",- " 'link': 'https://finance.yahoo.com/quote/AAPL',\n",- " 'snippet': 'Find the latest Apple Inc. (AAPL) stock quote, '\n",- " 'history, news and other vital information to help '\n",- " 'you with your stock trading and investing.',\n",+ " {'title': 'AAPL: Apple Inc Stock Price Quote - NASDAQ GS - '\n",+ " 'Bloomberg',\n",+ " 'link': 'https://www.bloomberg.com/quote/AAPL:US',\n",+ " 'snippet': 'Apple Inc. designs, manufactures, and markets '\n",+ " 'smartphones, personal computers, tablets, wearables '\n",+ " 'and accessories, and sells a variety of related '\n",+ " 'accessories.',\n"," 'position': 6}],\n",- " 'peopleAlsoAsk': [{'question': 'What does Apple Inc do?',\n",- " 'snippet': 'Apple Inc. (Apple) designs, manufactures and '\n",- " 'markets smartphones, personal\\n'\n",- " 'computers, tablets, wearables and accessories '\n",- " 'and sells a range of related\\n'\n",- " 'services.',\n",- " 'title': 'AAPL.O - | Stock Price & Latest News - Reuters',\n",- " 'link': 'https://www.reuters.com/markets/companies/AAPL.O/'},\n",- " {'question': 'What is the full form of Apple Inc?',\n",- " 'snippet': '(formerly Apple Computer Inc.) is an American '\n",- " 'computer and consumer electronics\\n'\n",- " 'company famous for creating the iPhone, iPad '\n",- " 'and Macintosh computers.',\n",- " 'title': 'What is Apple? An products and history overview '\n",- " '- TechTarget',\n",- " 'link': 'https://www.techtarget.com/whatis/definition/Apple'},\n",- " {'question': 'What is Apple Inc iPhone?',\n",- " 'snippet': 'Apple Inc (Apple) designs, manufactures, and '\n",- " 'markets smartphones, tablets,\\n'\n",- " 'personal computers, and wearable devices. The '\n",- " 'company also offers software\\n'\n",- " 'applications and related services, '\n",- " 'accessories, and third-party digital content.\\n'\n",- " \"Apple's product portfolio includes iPhone, \"\n",- " 'iPad, Mac, iPod, Apple Watch, and\\n'\n",- " 'Apple TV.',\n",- " 'title': 'Apple Inc Company Profile - Apple Inc Overview - '\n",- " 'GlobalData',\n",- " 'link': 'https://www.globaldata.com/company-profile/apple-inc/'},\n",- " {'question': 'Who runs Apple Inc?',\n",- " 'snippet': 'Timothy Donald Cook (born November 1, 1960) is '\n",- " 'an American business executive\\n'\n",- " 'who has been the chief executive officer of '\n",- " 'Apple Inc. since 2011. Cook\\n'\n",- " \"previously served as the company's chief \"\n",- " 'operating officer under its co-founder\\n'\n",- " 'Steve Jobs. He is the first CEO of any Fortune '\n",- " '500 company who is openly gay.',\n",- " 'title': 'Tim Cook - Wikipedia',\n",- " 'link': 'https://en.wikipedia.org/wiki/Tim_Cook'}],\n",- " 'relatedSearches': [{'query': 'Who invented the iPhone'},\n",- " {'query': 'Apple iPhone'},\n",- " {'query': 'History of Apple company PDF'},\n",- " {'query': 'Apple company history'},\n",- " {'query': 'Apple company introduction'},\n",- " {'query': 'Apple India'},\n",- " {'query': 'What does Apple Inc own'},\n",- " {'query': 'Apple Inc After Steve'},\n",- " {'query': 'Apple Watch'},\n",- " {'query': 'Apple App Store'}]}\n"+ " 'images': [{'title': 'Apple Inc. - Wikipedia',\n",+ " 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg',\n",+ " 'link': 'https://en.wikipedia.org/wiki/Apple_Inc.'},\n",+ " {'title': 'Apple Inc. - Wikipedia',\n",+ " 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Aerial_view_of_Apple_Park_dllu.jpg/330px-Aerial_view_of_Apple_Park_dllu.jpg',\n",+ " 'link': 'https://en.wikipedia.org/wiki/Apple_Inc.'},\n",+ " {'title': 'Apple',\n",+ " 'imageUrl': 'https://www.apple.com/ac/structured-data/images/open_graph_logo.png?202110180743',\n",+ " 'link': 'https://www.apple.com/'},\n",+ " {'title': 'Apple Store - Find a Store - Apple',\n",+ " 'imageUrl': 'https://rtlimages.apple.com/cmc/dieter/store/16_9/R289.png?resize=672:378&output-format=jpg&output-quality=85&interpolation=progressive-bicubic',\n",+ " 'link': 'https://www.apple.com/retail/'},\n",+ " {'title': 'Apple | LinkedIn',\n",+ " 'imageUrl': 'https://media.licdn.com/dms/image/v2/C560BAQHdAaarsO-eyA/company-logo_200_200/company-logo_200_200/0/1630637844948/apple_logo?e=2147483647&v=beta&t=pOXzU29XHyAnHt2zp2JryxZvMBdKpqxkkbDWtZ_pnEk',\n",+ " 'link': 'https://www.linkedin.com/company/apple'},\n",+ " {'title': 'The Founding of Apple Computer, Inc. - This Month in '\n",+ " 'Business ...',\n",+ " 'imageUrl': 'https://tile.loc.gov/storage-services/service/pnp/highsm/49100/49193r.jpg',\n",+ " 'link': 'https://guides.loc.gov/this-month-in-business-history/april/apple-computer-founded'},\n",+ " {'title': 'Apple Inc. (AAPL) Stock Price, News, Quote & History - '\n",+ " 'Yahoo Finance',\n",+ " 'imageUrl': 'https://s.yimg.com/uu/api/res/1.2/wsqdHHH05iioDnVbAb2WPQ--~B/aD01NzY7dz0xMDI0O2FwcGlkPXl0YWNoeW9u/https://media.zenfs.com/en/Benzinga/8f4e6ec4860c044f97cc63cfdd74b4f2.cf.webp',\n",+ " 'link': 'https://finance.yahoo.com/quote/AAPL/'},\n",+ " {'title': 'Apple Store - Find a Store - Apple',\n",+ " 'imageUrl': 'https://rtlimages.apple.com/cmc/dieter/store/16_9/R219.png?resize=672:378&output-format=jpg&output-quality=85&interpolation=progressive-bicubic',\n",+ " 'link': 'https://www.apple.com/retail/'},\n",+ " {'title': 'Apple Store - Find a Store - Apple',\n",+ " 'imageUrl': 'https://rtlimages.apple.com/cmc/dieter/store/16_9/R420.png?resize=672:378&output-format=jpg&output-quality=85&interpolation=progressive-bicubic',\n",+ " 'link': 'https://www.apple.com/retail/'}],\n",+ " 'peopleAlsoAsk': [{'question': 'What is the Apple Inc?',\n",+ " 'snippet': 'It is best known for its consumer electronics, '\n",+ " 'software, and services. Founded in 1976 as '\n",+ " 'Apple Computer Company by Steve Jobs, Steve '\n",+ " 'Wozniak and Ronald Wayne, the company was '\n",+ " 'incorporated by Jobs and Wozniak as Apple '\n",+ " 'Computer, Inc. the following year. It was '\n",+ " 'renamed Apple Inc.',\n",+ " 'title': 'Apple Inc. - Wikipedia',\n",+ " 'link': 'https://en.wikipedia.org/wiki/Apple_Inc.'},\n",+ " {'question': 'Is Apple an LLC or Inc.?',\n",+ " 'snippet': 'Apple Inc., located at One Apple Park Way, '\n",+ " 'Cupertino, California, for users in the United '\n",+ " 'States, including Puerto Rico.',\n",+ " 'title': 'Legal - Privacy Policy Affiliated Company - '\n",+ " 'Apple',\n",+ " 'link': 'https://www.apple.com/legal/privacy/en-ww/affiliated-company/'}],\n",+ " 'relatedSearches': [{'query': 'apple inc คืออะไร'},\n",+ " {'query': 'Apple Inc full form'},\n",+ " {'query': 'Apple Inc address'},\n",+ " {'query': 'Apple Inc investor relations'},\n",+ " {'query': 'Apple Inc industry'},\n",+ " {'query': 'Apple Inc careers'},\n",+ " {'query': 'Apple Inc Net worth'}],\n",+ " 'credits': 1}\n"]}],@@ -410,121 +363,136 @@"{'searchParameters': {'q': 'Lion',\n"," 'gl': 'us',\n"," 'hl': 'en',\n",+ " 'type': 'images',\n"," 'num': 10,\n",- " 'type': 'images'},\n",+ " 'engine': 'google'},\n"," 'images': [{'title': 'Lion - Wikipedia',\n",- " 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Lion_waiting_in_Namibia.jpg/1200px-Lion_waiting_in_Namibia.jpg',\n",- " 'imageWidth': 1200,\n",- " 'imageHeight': 900,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRye79ROKwjfb6017jr0iu8Bz2E1KKuHg-A4qINJaspyxkZrkw&s',\n",- " 'thumbnailWidth': 259,\n",- " 'thumbnailHeight': 194,\n",+ " 'imageUrl': 'https://upload.wikimedia.org/wikipedia/commons/a/a6/020_The_lion_king_Snyggve_in_the_Serengeti_National_Park_Photo_by_Giles_Laurent.jpg',\n",+ " 'imageWidth': 5168,\n",+ " 'imageHeight': 3448,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_HGdbfaRDdKJpWDDdD0AkS58dHashCEbqH9yTMz4j7lQIC6iD&s',\n",+ " 'thumbnailWidth': 275,\n",+ " 'thumbnailHeight': 183,\n"," 'source': 'Wikipedia',\n"," 'domain': 'en.wikipedia.org',\n"," 'link': 'https://en.wikipedia.org/wiki/Lion',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fa%2Fa6%2F020_The_lion_king_Snyggve_in_the_Serengeti_National_Park_Photo_by_Giles_Laurent.jpg&tbnid=iu_QQ3Z8fGxRvM&imgrefurl=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FLion&docid=0P9ZPIi_HU4dMM&w=5168&h=3448&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIAigA',\n"," 'position': 1},\n"," {'title': 'Lion | Characteristics, Habitat, & Facts | Britannica',\n",- " 'imageUrl': 'https://cdn.britannica.com/55/2155-050-604F5A4A/lion.jpg',\n",- " 'imageWidth': 754,\n",- " 'imageHeight': 752,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS3fnDub1GSojI0hJ-ZGS8Tv-hkNNloXh98DOwXZoZ_nUs3GWSd&s',\n",- " 'thumbnailWidth': 225,\n",- " 'thumbnailHeight': 224,\n",- " 'source': 'Encyclopedia Britannica',\n",+ " 'imageUrl': 'https://cdn.britannica.com/29/150929-050-547070A1/lion-Kenya-Masai-Mara-National-Reserve.jpg',\n",+ " 'imageWidth': 1600,\n",+ " 'imageHeight': 1085,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSCqaKY_THr0IBZN8c-2VApnnbuvKmnsWjfrwKoWHFR9w3eN5o&s',\n",+ " 'thumbnailWidth': 273,\n",+ " 'thumbnailHeight': 185,\n",+ " 'source': 'Britannica',\n"," 'domain': 'www.britannica.com',\n"," 'link': 'https://www.britannica.com/animal/lion',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fcdn.britannica.com%2F29%2F150929-050-547070A1%2Flion-Kenya-Masai-Mara-National-Reserve.jpg&tbnid=DBk5Qx3rVV587M&imgrefurl=https%3A%2F%2Fwww.britannica.com%2Fanimal%2Flion&docid=Zp2R2-BbubSvqM&w=1600&h=1085&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIAygB',\n"," 'position': 2},\n",- " {'title': 'African lion, facts and photos',\n",- " 'imageUrl': 'https://i.natgeofe.com/n/487a0d69-8202-406f-a6a0-939ed3704693/african-lion.JPG',\n",- " 'imageWidth': 3072,\n",- " 'imageHeight': 2043,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPlTarrtDbyTiEm-VI_PML9VtOTVPuDXJ5ybDf_lN11H2mShk&s',\n",- " 'thumbnailWidth': 275,\n",- " 'thumbnailHeight': 183,\n",- " 'source': 'National Geographic',\n",- " 'domain': 'www.nationalgeographic.com',\n",- " 'link': 'https://www.nationalgeographic.com/animals/mammals/facts/african-lion',\n",+ " {'title': 'Lion',\n",+ " 'imageUrl': 'https://i.natgeofe.com/k/1d33938b-3d02-4773-91e3-70b113c3b8c7/lion-male-roar.jpg?wp=1&w=1084.125&h=609',\n",+ " 'imageWidth': 1083,\n",+ " 'imageHeight': 609,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQDDPsOQpmuAhyuNY28gdM0msnIfqxIlLi01CudMaojO5w0xmM&s',\n",+ " 'thumbnailWidth': 300,\n",+ " 'thumbnailHeight': 168,\n",+ " 'source': 'National Geographic Kids',\n",+ " 'domain': 'kids.nationalgeographic.com',\n",+ " 'link': 'https://kids.nationalgeographic.com/animals/mammals/facts/lion',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fi.natgeofe.com%2Fk%2F1d33938b-3d02-4773-91e3-70b113c3b8c7%2Flion-male-roar.jpg%3Fwp%3D1%26w%3D1084.125%26h%3D609&tbnid=P9Vzzl57Ow4obM&imgrefurl=https%3A%2F%2Fkids.nationalgeographic.com%2Fanimals%2Fmammals%2Ffacts%2Flion&docid=r48PKzcCogU0oM&w=1083&h=609&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIBCgC',\n"," 'position': 3},\n",- " {'title': 'Saint Louis Zoo | African Lion',\n",- " 'imageUrl': 'https://optimise2.assets-servd.host/maniacal-finch/production/animals/african-lion-01-01.jpg?w=1200&auto=compress%2Cformat&fit=crop&dm=1658933674&s=4b63f926a0f524f2087a8e0613282bdb',\n",- " 'imageWidth': 1200,\n",- " 'imageHeight': 1200,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlewcJ5SwC7yKup6ByaOjTnAFDeoOiMxyJTQaph2W_I3dnks4&s',\n",- " 'thumbnailWidth': 225,\n",- " 'thumbnailHeight': 225,\n",- " 'source': 'St. Louis Zoo',\n",- " 'domain': 'stlzoo.org',\n",- " 'link': 'https://stlzoo.org/animals/mammals/carnivores/lion',\n",+ " {'title': 'Lion | Characteristics, Habitat, & Facts | Britannica',\n",+ " 'imageUrl': 'https://cdn.britannica.com/30/150930-120-D3D93F1E/lion-panthea-leo-Namibia.jpg',\n",+ " 'imageWidth': 900,\n",+ " 'imageHeight': 675,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRYxxLBZ8F_59YdYFJu6y8Zfhf64kMNbrD94uNF0gj9Wgtr4B2k&s',\n",+ " 'thumbnailWidth': 259,\n",+ " 'thumbnailHeight': 194,\n",+ " 'source': 'Britannica',\n",+ " 'domain': 'www.britannica.com',\n",+ " 'link': 'https://www.britannica.com/animal/lion',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fcdn.britannica.com%2F30%2F150930-120-D3D93F1E%2Flion-panthea-leo-Namibia.jpg&tbnid=gu4-4upZHrFJ5M&imgrefurl=https%3A%2F%2Fwww.britannica.com%2Fanimal%2Flion&docid=Zp2R2-BbubSvqM&w=900&h=675&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIBSgD',\n"," 'position': 4},\n",- " {'title': 'How to Draw a Realistic Lion like an Artist - Studio '\n",- " 'Wildlife',\n",- " 'imageUrl': 'https://studiowildlife.com/wp-content/uploads/2021/10/245528858_183911853822648_6669060845725210519_n.jpg',\n",- " 'imageWidth': 1431,\n",- " 'imageHeight': 2048,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTmn5HayVj3wqoBDQacnUtzaDPZzYHSLKUlIEcni6VB8w0mVeA&s',\n",- " 'thumbnailWidth': 188,\n",- " 'thumbnailHeight': 269,\n",- " 'source': 'Studio Wildlife',\n",- " 'domain': 'studiowildlife.com',\n",- " 'link': 'https://studiowildlife.com/how-to-draw-a-realistic-lion-like-an-artist/',\n",+ " {'title': '6,800+ Lion Walking Stock Photos, Pictures & '\n",+ " 'Royalty-Free Images ...',\n",+ " 'imageUrl': 'https://media.istockphoto.com/id/877369086/photo/lion-panthera-leo-10-years-old-isolated-on-white.jpg?s=612x612&w=0&k=20&c=J__Jx_BX_FN7iehO965TJtPFYUl0A-bwFgIYaK32R3Y=',\n",+ " 'imageWidth': 612,\n",+ " 'imageHeight': 527,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQNXCI7damJui7Vvf6TQi0ixg_kgvbGQcl9L01u4Rx6ZCI7lqyR&s',\n",+ " 'thumbnailWidth': 242,\n",+ " 'thumbnailHeight': 208,\n",+ " 'source': 'iStock',\n",+ " 'domain': 'www.istockphoto.com',\n",+ " 'link': 'https://www.istockphoto.com/photos/lion-walking',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fmedia.istockphoto.com%2Fid%2F877369086%2Fphoto%2Flion-panthera-leo-10-years-old-isolated-on-white.jpg%3Fs%3D612x612%26w%3D0%26k%3D20%26c%3DJ__Jx_BX_FN7iehO965TJtPFYUl0A-bwFgIYaK32R3Y%3D&tbnid=UbVNtrUwB3qvSM&imgrefurl=https%3A%2F%2Fwww.istockphoto.com%2Fphotos%2Flion-walking&docid=VUUNuYLgdvat6M&w=612&h=527&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIBigE',\n",+ " 'creator': 'GlobalP',\n",+ " 'credit': 'Getty Images/iStockphoto',\n"," 'position': 5},\n",+ " {'title': 'Free Fierce Lion Roaring Image | Download at StockCake',\n",+ " 'imageUrl': 'https://images.stockcake.com/public/6/d/2/6d2a992e-cf12-460f-a811-c961e124d9a2_large/fierce-lion-roaring-stockcake.jpg',\n",+ " 'imageWidth': 408,\n",+ " 'imageHeight': 728,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRDLNUIqFT5oEh7CNtksHhODRWcuCYkwjHI-sLQXaV4rCPbcO8R&s',\n",+ " 'thumbnailWidth': 168,\n",+ " 'thumbnailHeight': 300,\n",+ " 'source': 'StockCake',\n",+ " 'domain': 'stockcake.com',\n",+ " 'link': 'https://stockcake.com/i/fierce-lion-roaring_1358116_1064655',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fimages.stockcake.com%2Fpublic%2F6%2Fd%2F2%2F6d2a992e-cf12-460f-a811-c961e124d9a2_large%2Ffierce-lion-roaring-stockcake.jpg&tbnid=14Bc2UcRYg2vRM&imgrefurl=https%3A%2F%2Fstockcake.com%2Fi%2Ffierce-lion-roaring_1358116_1064655&docid=mIUgDyGFaSvxJM&w=408&h=728&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcIBygF',\n",+ " 'position': 6},\n"," {'title': 'Lion | Characteristics, Habitat, & Facts | Britannica',\n",- " 'imageUrl': 'https://cdn.britannica.com/29/150929-050-547070A1/lion-Kenya-Masai-Mara-National-Reserve.jpg',\n",- " 'imageWidth': 1600,\n",- " 'imageHeight': 1085,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSCqaKY_THr0IBZN8c-2VApnnbuvKmnsWjfrwKoWHFR9w3eN5o&s',\n",- " 'thumbnailWidth': 273,\n",- " 'thumbnailHeight': 185,\n",- " 'source': 'Encyclopedia Britannica',\n",+ " 'imageUrl': 'https://cdn.britannica.com/55/2155-050-604F5A4A/lion.jpg',\n",+ " 'imageWidth': 754,\n",+ " 'imageHeight': 752,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS3fnDub1GSojI0hJ-ZGS8Tv-hkNNloXh98DOwXZoZ_nUs3GWSd&s',\n",+ " 'thumbnailWidth': 225,\n",+ " 'thumbnailHeight': 224,\n",+ " 'source': 'Britannica',\n"," 'domain': 'www.britannica.com',\n"," 'link': 'https://www.britannica.com/animal/lion',\n",- " 'position': 6},\n",- " {'title': \"Where do lions live? Facts about lions' habitats and \"\n",- " 'other cool facts',\n",- " 'imageUrl': 'https://www.gannett-cdn.com/-mm-/b2b05a4ab25f4fca0316459e1c7404c537a89702/c=0-0-1365-768/local/-/media/2022/03/16/USATODAY/usatsports/imageForEntry5-ODq.jpg?width=1365&height=768&fit=crop&format=pjpg&auto=webp',\n",- " 'imageWidth': 1365,\n",- " 'imageHeight': 768,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTc_4vCHscgvFvYy3PSrtIOE81kNLAfhDK8F3mfOuotL0kUkbs&s',\n",- " 'thumbnailWidth': 299,\n",- " 'thumbnailHeight': 168,\n",- " 'source': 'USA Today',\n",- " 'domain': 'www.usatoday.com',\n",- " 'link': 'https://www.usatoday.com/story/news/2023/01/08/where-do-lions-live-habitat/10927718002/',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fcdn.britannica.com%2F55%2F2155-050-604F5A4A%2Flion.jpg&tbnid=IhlRPXpsi9aDnM&imgrefurl=https%3A%2F%2Fwww.britannica.com%2Fanimal%2Flion&docid=Zp2R2-BbubSvqM&w=754&h=752&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcICCgG',\n"," 'position': 7},\n",+ " {'title': \"Bringing Nigeria's lion population back from extinction \"\n",+ " '- WildAid',\n",+ " 'imageUrl': 'https://wildaid.org/wp-content/uploads/2022/08/Untitled-design-32-400x335.png',\n",+ " 'imageWidth': 400,\n",+ " 'imageHeight': 335,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTnurDJfi5sllJxVxWFjfyU8nvXqxy3ef2dcxUTNBmLND9aVuQ&s',\n",+ " 'thumbnailWidth': 245,\n",+ " 'thumbnailHeight': 205,\n",+ " 'source': '- WildAid',\n",+ " 'domain': 'wildaid.org',\n",+ " 'link': 'https://wildaid.org/bringing-nigerias-lion-population-back-from-extinction/',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fwildaid.org%2Fwp-content%2Fuploads%2F2022%2F08%2FUntitled-design-32-400x335.png&tbnid=ri5ErxfeVw-rUM&imgrefurl=https%3A%2F%2Fwildaid.org%2Fbringing-nigerias-lion-population-back-from-extinction%2F&docid=IRE1bqPePPGKUM&w=400&h=335&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcICSgH',\n",+ " 'position': 8},\n"," {'title': 'Lion',\n",- " 'imageUrl': 'https://i.natgeofe.com/k/1d33938b-3d02-4773-91e3-70b113c3b8c7/lion-male-roar_square.jpg',\n",- " 'imageWidth': 3072,\n",- " 'imageHeight': 3072,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQqLfnBrBLcTiyTZynHH3FGbBtX2bd1ScwpcuOLnksTyS9-4GM&s',\n",+ " 'imageUrl': 'https://images.photowall.com/products/46596/lion-1.jpg?h=699&q=85',\n",+ " 'imageWidth': 699,\n",+ " 'imageHeight': 699,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTT-SMMS4_tLzeHGP8iK6q1f6VuAfAGKuwvRcKhfAmt6GEutoRZ&s',\n"," 'thumbnailWidth': 225,\n"," 'thumbnailHeight': 225,\n",- " 'source': 'National Geographic Kids',\n",- " 'domain': 'kids.nationalgeographic.com',\n",- " 'link': 'https://kids.nationalgeographic.com/animals/mammals/facts/lion',\n",- " 'position': 8},\n",- " {'title': \"Lion | Smithsonian's National Zoo\",\n",- " 'imageUrl': 'https://nationalzoo.si.edu/sites/default/files/styles/1400_scale/public/animals/exhibit/africanlion-005.jpg?itok=6wA745g_',\n",- " 'imageWidth': 1400,\n",- " 'imageHeight': 845,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSgB3z_D4dMEOWJ7lajJk4XaQSL4DdUvIRj4UXZ0YoE5fGuWuo&s',\n",- " 'thumbnailWidth': 289,\n",- " 'thumbnailHeight': 174,\n",- " 'source': \"Smithsonian's National Zoo\",\n",- " 'domain': 'nationalzoo.si.edu',\n",- " 'link': 'https://nationalzoo.si.edu/animals/lion',\n",+ " 'source': 'Photowall',\n",+ " 'domain': 'www.photowall.com',\n",+ " 'link': 'https://www.photowall.com/us/lion-1-poster',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Fimages.photowall.com%2Fproducts%2F46596%2Flion-1.jpg%3Fh%3D699%26q%3D85&tbnid=Hx0R3srHGe7c6M&imgrefurl=https%3A%2F%2Fwww.photowall.com%2Fus%2Flion-1-poster&docid=svxN-CF1BznYSM&w=699&h=699&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcICigI',\n"," 'position': 9},\n",- " {'title': \"Zoo's New Male Lion Explores Habitat for the First Time \"\n",- " '- Virginia Zoo',\n",- " 'imageUrl': 'https://virginiazoo.org/wp-content/uploads/2022/04/ZOO_0056-scaled.jpg',\n",- " 'imageWidth': 2560,\n",- " 'imageHeight': 2141,\n",- " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTDCG7XvXRCwpe_-Vy5mpvrQpVl5q2qwgnDklQhrJpQzObQGz4&s',\n",- " 'thumbnailWidth': 246,\n",- " 'thumbnailHeight': 205,\n",- " 'source': 'Virginia Zoo',\n",- " 'domain': 'virginiazoo.org',\n",- " 'link': 'https://virginiazoo.org/zoos-new-male-lion-explores-habitat-for-thefirst-time/',\n",- " 'position': 10}]}\n"+ " {'title': 'Lion | Species | WWF',\n",+ " 'imageUrl': 'https://files.worldwildlife.org/wwfcmsprod/images/Lion_Kenya/story_full_width/92n0a30duq_Medium_WW2116702.jpg',\n",+ " 'imageWidth': 1000,\n",+ " 'imageHeight': 600,\n",+ " 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQcAAjEbm00R6g4382D54syoBUFN19j80OBd31FAOMwK_S2Pa9d&s',\n",+ " 'thumbnailWidth': 290,\n",+ " 'thumbnailHeight': 174,\n",+ " 'source': 'World Wildlife Fund',\n",+ " 'domain': 'www.worldwildlife.org',\n",+ " 'link': 'https://www.worldwildlife.org/species/lion--19',\n",+ " 'googleUrl': 'https://www.google.com/imgres?imgurl=https%3A%2F%2Ffiles.worldwildlife.org%2Fwwfcmsprod%2Fimages%2FLion_Kenya%2Fstory_full_width%2F92n0a30duq_Medium_WW2116702.jpg&tbnid=N9k7RywguCeZmM&imgrefurl=https%3A%2F%2Fwww.worldwildlife.org%2Fspecies%2Flion--19&docid=RqCpf1UYcQDKxM&w=1000&h=600&ved=0ahUKEwjl5-H3hfmMAxUMvokEHY6wD3gQvFcICygJ',\n",+ " 'copyright': 'Juozas Cernius',\n",+ " 'creator': 'Juozas Cernius www.CERNIUS.com',\n",+ " 'position': 10}],\n",+ " 'credits': 1}\n"]}],@@ -565,96 +533,105 @@"{'searchParameters': {'q': 'Tesla Inc.',\n"," 'gl': 'us',\n"," 'hl': 'en',\n",+ " 'type': 'news',\n"," 'num': 10,\n",- " 'type': 'news'},\n",- " 'news': [{'title': 'ISS recommends Tesla investors vote against re-election '\n",- " 'of Robyn Denholm',\n",- " 'link': 'https://www.reuters.com/business/autos-transportation/iss-recommends-tesla-investors-vote-against-re-election-robyn-denholm-2023-05-04/',\n",- " 'snippet': 'Proxy advisory firm ISS on Wednesday recommended Tesla '\n",- " 'investors vote against re-election of board chair Robyn '\n",- " 'Denholm, citing \"concerns on...',\n",- " 'date': '5 mins ago',\n",- " 'source': 'Reuters',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROdETe_GUyp1e8RHNhaRM8Z_vfxCvdfinZwzL1bT1ZGSYaGTeOojIdBoLevA&s',\n",+ " 'engine': 'google'},\n",+ " 'news': [{'title': 'Tesla stock soars after DoT unveils new self-driving car '\n",+ " 'rules, set for near-20% weekly rally',\n",+ " 'link': 'https://finance.yahoo.com/news/tesla-stock-soars-after-dot-unveils-new-self-driving-car-rules-set-for-near-20-weekly-rally-183748972.html',\n",+ " 'snippet': 'Tesla (TSLA) stock surged as much as 10% on Friday, '\n",+ " 'putting shares on track to log a weekly gain north of '\n",+ " '17% with several positive...',\n",+ " 'date': '2 days ago',\n",+ " 'source': 'Yahoo Finance',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTgHH9x2YIdRGyo1VpJC8b5sYrW5-UprLRAT3r4LQDYx1lX1DeNlunoU4mc2w&s',\n"," 'position': 1},\n",- " {'title': 'Global companies by market cap: Tesla fell most in April',\n",- " 'link': 'https://www.reuters.com/markets/global-companies-by-market-cap-tesla-fell-most-april-2023-05-02/',\n",- " 'snippet': 'Tesla Inc was the biggest loser among top companies by '\n",- " 'market capitalisation in April, hit by disappointing '\n",- " 'quarterly earnings after it...',\n",+ " {'title': 'Tesla Refunds Early India Bookings Signaling Entry Is '\n",+ " 'Near',\n",+ " 'link': 'https://www.bloomberg.com/news/articles/2025-04-25/tesla-tsla-refunds-early-india-bookings-signaling-entry-is-near',\n",+ " 'snippet': \"Tesla Inc.'s India office is refunding early bookers of \"\n",+ " 'its Model 3, according to emails seen by Bloomberg '\n",+ " 'News, sparking speculation the...',\n"," 'date': '1 day ago',\n",- " 'source': 'Reuters',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4u4CP8aOdGyRFH6o4PkXi-_eZDeY96vLSag5gDjhKMYf98YBER2cZPbkStQ&s',\n",- " 'position': 2},\n",- " {'title': 'Tesla Wanted an EV Price War. Ford Showed Up.',\n",- " 'link': 'https://www.bloomberg.com/opinion/articles/2023-05-03/tesla-wanted-an-ev-price-war-ford-showed-up',\n",- " 'snippet': 'The legacy automaker is paring back the cost of its '\n",- " 'Mustang Mach-E model after Tesla discounted its '\n",- " 'competing EVs, portending tighter...',\n",- " 'date': '6 hours ago',\n"," 'source': 'Bloomberg.com',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS_3Eo4VI0H-nTeIbYc5DaQn5ep7YrWnmhx6pv8XddFgNF5zRC9gEpHfDq8yQ&s',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTme3lE48FWOyFuWDM-o3wZISjba30aHdoRluMkt7zqlrYqCKK5qGZnwbJ89g&s',\n",+ " 'position': 2},\n",+ " {'title': 'Musk needs to become a more normal CEO',\n",+ " 'link': 'https://www.ft.com/content/4d10da88-5a0b-49b5-9b29-77286f1985ec',\n",+ " 'snippet': 'And Tesla should become a more normal company.',\n",+ " 'date': '10 hours ago',\n",+ " 'source': 'Financial Times',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSbfTHj0V4haC2VU_bI6W_ZNegrScrmvbUrnkjvskZBzvpPh7WzBIjir342Gw&s',\n"," 'position': 3},\n",- " {'title': 'Joby Aviation to get investment from Tesla shareholder '\n",- " 'Baillie Gifford',\n",- " 'link': 'https://finance.yahoo.com/news/joby-aviation-investment-tesla-shareholder-204450712.html',\n",- " 'snippet': 'This comes days after Joby clinched a $55 million '\n",- " 'contract extension to deliver up to nine air taxis to '\n",- " 'the U.S. Air Force,...',\n",- " 'date': '4 hours ago',\n",- " 'source': 'Yahoo Finance',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQO0uVn297LI-xryrPNqJ-apUOulj4ohM-xkN4OfmvMOYh1CPdUEBbYx6hviw&s',\n",+ " {'title': \"Tesla: The 'Musk Put' Is In Play (NASDAQ:TSLA)\",\n",+ " 'link': 'https://seekingalpha.com/article/4778551-tesla-musk-put-in-play',\n",+ " 'snippet': \"Tesla: The 'Musk Put' Is In Play. Apr. 27, 2025 6:02 AM \"\n",+ " 'ETTesla, Inc. (TSLA) Stock, TSLA:CA StockBYDDF, NIO, '\n",+ " 'XPEV, GOOG, TSLA, TSLA:CA13 Comments 1 Like.',\n",+ " 'date': '10 hours ago',\n",+ " 'source': 'Seeking Alpha',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSumMVfOINSI7Xip8Z-wLXwg4mpTuryAk4RMJDL-tWTW5DAdi1yR2WVIezaVQ&s',\n"," 'position': 4},\n",- " {'title': 'Tesla resumes U.S. orders for a Model 3 version at lower '\n",- " 'price, range',\n",- " 'link': 'https://finance.yahoo.com/news/tesla-resumes-us-orders-model-045736115.html',\n",- " 'snippet': '(Reuters) -Tesla Inc has resumed taking orders for its '\n",- " 'Model 3 long-range vehicle in the United States, the '\n",- " \"company's website showed late on...\",\n",- " 'date': '19 hours ago',\n",- " 'source': 'Yahoo Finance',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTIZetJ62sQefPfbQ9KKDt6iH7Mc0ylT5t_hpgeeuUkHhJuAx2FOJ4ZTRVDFg&s',\n",+ " {'title': 'Tesla: US Federal Autonomous Vehicle Regulatory Framework '\n",+ " 'Aligns With Our Thesis',\n",+ " 'link': 'https://www.morningstar.com/stocks/tesla-us-federal-autonomous-vehicle-regulatory-framework-aligns-with-our-thesis',\n",+ " 'snippet': \"Editor's Note: This analysis was originally published \"\n",+ " 'as a stock note by Morningstar Equity Research. '\n",+ " 'Securities In This Article. Tesla Inc.',\n",+ " 'date': '1 day ago',\n",+ " 'source': 'Morningstar',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT_C3JjwfGXEpLowp-cmCMpxTvoMQ3nmOrhya0aLsnIEBrQSorBX3OSCb1svg&s',\n"," 'position': 5},\n",- " {'title': 'The Tesla Model 3 Long Range AWD Is Now Available in the '\n",- " 'U.S. With 325 Miles of Range',\n",- " 'link': 'https://www.notateslaapp.com/news/1393/tesla-reopens-orders-for-model-3-long-range-after-months-of-unavailability',\n",- " 'snippet': 'Tesla has reopened orders for the Model 3 Long Range '\n",- " 'RWD, which has been unavailable for months due to high '\n",- " 'demand.',\n",- " 'date': '7 hours ago',\n",- " 'source': 'Not a Tesla App',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSecrgxZpRj18xIJY-nDHljyP-A4ejEkswa9eq77qhMNrScnVIqe34uql5U4w&s',\n",+ " {'title': \"Elon Musk's Wealth Skyrockets By Billions As Tesla Stock \"\n",+ " 'Rallies After Billionaire CEO Steps Back From DOGE',\n",+ " 'link': 'https://www.benzinga.com/markets/25/04/44974342/elon-musks-wealth-skyrockets-by-billions-as-tesla-stock-rallies-after-billionaire-ceo-steps-back-from-doge',\n",+ " 'snippet': 'The net worth of Elon Musk witnessed a staggering '\n",+ " 'increase of $7.5 billion on Wednesday as shares of '\n",+ " 'Tesla Inc. (NASDAQ: TSLA) experienced a...',\n",+ " 'date': '3 days ago',\n",+ " 'source': 'Benzinga',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTok4iKaGss1or69QeOrnUo8ZEprpI5Etbq6kepYjLBPlIjOOhiX8yRYWeIiw&s',\n"," 'position': 6},\n",- " {'title': 'Tesla Cybertruck alpha prototype spotted at the Fremont '\n",- " 'factory in new pics and videos',\n",- " 'link': 'https://www.teslaoracle.com/2023/05/03/tesla-cybertruck-alpha-prototype-interior-and-exterior-spotted-at-the-fremont-factory-in-new-pics-and-videos/',\n",- " 'snippet': 'A Tesla Cybertruck alpha prototype goes to Fremont, '\n",- " 'California for another round of testing before going to '\n",- " 'production later this year (pics...',\n",- " 'date': '14 hours ago',\n",- " 'source': 'Tesla Oracle',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRO7M5ZLQE-Zo4-_5dv9hNAQZ3wSqfvYCuKqzxHG-M6CgLpwPMMG_ssebdcMg&s',\n",+ " {'title': 'Why Tesla Inc. (TSLA) Soared Last Week',\n",+ " 'link': 'https://finance.yahoo.com/news/why-tesla-inc-tsla-soared-180528904.html',\n",+ " 'snippet': 'We recently published a list of Why These 10 Firms '\n",+ " 'Recorded Double-Digit Gains Last Week. In this article, '\n",+ " 'we are going to take a look at...',\n",+ " 'date': '1 day ago',\n",+ " 'source': 'Yahoo Finance',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTkQBI72ZwZ8mNhFQ58DLH4wJMyfpsA67ONuTDvvOfAjop5kTrOVcymDGairw&s',\n"," 'position': 7},\n",- " {'title': 'Tesla putting facility in new part of country - Austin '\n",- " 'Business Journal',\n",- " 'link': 'https://www.bizjournals.com/austin/news/2023/05/02/tesla-leases-building-seattle-area.html',\n",- " 'snippet': 'Check out what Puget Sound Business Journal has to '\n",- " \"report about the Austin-based company's real estate \"\n",- " 'footprint in the Pacific Northwest.',\n",- " 'date': '22 hours ago',\n",- " 'source': 'The Business Journals',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9kIEHWz1FcHKDUtGQBS0AjmkqtyuBkQvD8kyIY3kpaPrgYaN7I_H2zoOJsA&s',\n",- " 'position': 8},\n",- " {'title': 'Tesla (TSLA) Resumes Orders for Model 3 Long Range After '\n",- " 'Backlog',\n",- " 'link': 'https://www.bloomberg.com/news/articles/2023-05-03/tesla-resumes-orders-for-popular-model-3-long-range-at-47-240',\n",- " 'snippet': 'Tesla Inc. has resumed taking orders for its Model 3 '\n",- " 'Long Range edition with a starting price of $47240, '\n",- " 'according to its website.',\n",- " 'date': '5 hours ago',\n",+ " {'title': 'Tesla Hikes Canadian Prices and Pushes Its Pre-Tariff '\n",+ " 'Inventory',\n",+ " 'link': 'https://www.bloomberg.com/news/articles/2025-04-26/tesla-hikes-canadian-prices-and-pushes-its-pre-tariff-inventory',\n",+ " 'snippet': 'Tesla Inc. is raising prices in Canada and encouraging '\n",+ " 'buyers to snap up cars imported before counter-tariffs '\n",+ " 'were imposed on US-made...',\n",+ " 'date': '1 day ago',\n"," 'source': 'Bloomberg.com',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWWIC4VpMTfRvSyqiomODOoLg0xhoBf-Tc1qweKnSuaiTk-Y1wMJZM3jct0w&s',\n",- " 'position': 9}]}\n"+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3pUCdm4COUa4ckj6l-_oqzQUQyPZ_TwxylDHsKfQ5OHaTeC5C14xi3xTPjw&s',\n",+ " 'position': 8},\n",+ " {'title': 'Tesla, Inc. (TSLA) Faces Weak Q1 Auto Revenues but '\n",+ " 'Stresses Long-Term AI and Robotics Vision',\n",+ " 'link': 'https://finance.yahoo.com/news/tesla-inc-tsla-faces-weak-142059117.html',\n",+ " 'snippet': 'We recently compiled a list of the 12 AI Stocks '\n",+ " 'Analysts Are Talking About Right Now. In this article, '\n",+ " 'we are going to take a look at where...',\n",+ " 'date': '1 day ago',\n",+ " 'source': 'Yahoo Finance',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQAF15LDx0VBN7Yhpe99fDywZVZOe2rC4QAQgOyIXyRMMEbUURh_ujyCqQHQg&s',\n",+ " 'position': 9},\n",+ " {'title': 'Analyst Says Tesla (TSLA) Valuation Still ‘Incredibly '\n",+ " 'Rich’ as Chinese Companies ‘Eat’ Its Market Share',\n",+ " 'link': 'https://finance.yahoo.com/news/analyst-says-tesla-tsla-valuation-183703204.html',\n",+ " 'snippet': 'We recently published a list of Top 10 Stocks to Watch '\n",+ " 'Ahead of May. In this article, we are going to take a '\n",+ " 'look at where Tesla, Inc.',\n",+ " 'date': '2 hours ago',\n",+ " 'source': 'Yahoo Finance',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTd5uofRE66VcJeA46Ewvop5DmICfn3q1dYjk7QydsDVIp12Qtn4rTtzQJJ4g&s',\n",+ " 'position': 10}],\n",+ " 'credits': 1}\n"]}],@@ -694,39 +671,21 @@"{'searchParameters': {'q': 'Tesla Inc.',\n"," 'gl': 'us',\n"," 'hl': 'en',\n",- " 'num': 10,\n"," 'type': 'news',\n",- " 'tbs': 'qdr:h'},\n",- " 'news': [{'title': 'Oklahoma Gov. Stitt sees growing foreign interest in '\n",- " 'investments in ...',\n",- " 'link': 'https://www.reuters.com/world/us/oklahoma-gov-stitt-sees-growing-foreign-interest-investments-state-2023-05-04/',\n",- " 'snippet': 'T)), a battery supplier to electric vehicle maker Tesla '\n",- " 'Inc (TSLA.O), said on Sunday it is considering building '\n",- " 'a battery plant in Oklahoma, its third in...',\n",- " 'date': '53 mins ago',\n",- " 'source': 'Reuters',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSSTcsXeenqmEKdiekvUgAmqIPR4nlAmgjTkBqLpza-lLfjX1CwB84MoNVj0Q&s',\n",- " 'position': 1},\n",- " {'title': 'Ryder lanza solución llave en mano para vehículos '\n",- " 'eléctricos en EU',\n",- " 'link': 'https://www.tyt.com.mx/nota/ryder-lanza-solucion-llave-en-mano-para-vehiculos-electricos-en-eu',\n",- " 'snippet': 'Ryder System Inc. presentó RyderElectric+ TM como su '\n",- " 'nueva solución llave en mano ... Ryder también tiene '\n",- " 'reservados los semirremolques Tesla y continúa...',\n",- " 'date': '56 mins ago',\n",- " 'source': 'Revista Transportes y Turismo',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQJhXTQQtjSUZf9YPM235WQhFU5_d7lEA76zB8DGwZfixcgf1_dhPJyKA1Nbw&s',\n",- " 'position': 2},\n",- " {'title': '\"I think people can get by with $999 million,\" Bernie '\n",- " 'Sanders tells American Billionaires.',\n",- " 'link': 'https://thebharatexpressnews.com/i-think-people-can-get-by-with-999-million-bernie-sanders-tells-american-billionaires-heres-how-the-ultra-rich-can-pay-less-income-tax-than-you-legally/',\n",- " 'snippet': 'The report noted that in 2007 and 2011, Amazon.com Inc. '\n",- " 'founder Jeff Bezos “did not pay a dime in federal ... '\n",- " 'If you want to bet on Musk, check out Tesla.',\n",- " 'date': '11 mins ago',\n",- " 'source': 'THE BHARAT EXPRESS NEWS',\n",- " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_X9qqSwVFBBdos2CK5ky5IWIE3aJPCQeRYR9O1Jz4t-MjaEYBuwK7AU3AJQ&s',\n",- " 'position': 3}]}\n"+ " 'num': 10,\n",+ " 'tbs': 'qdr:h',\n",+ " 'engine': 'google'},\n",+ " 'news': [{'title': 'Big Tech faces high-stakes earnings week amid tariff '\n",+ " 'jitters',\n",+ " 'link': 'https://seekingalpha.com/news/4436090-big-tech-faces-high-stakes-earnings-week-amid-tariff-jitters',\n",+ " 'snippet': 'When Big Tech last reported earnings, President Donald '\n",+ " 'Trump had just taken office, optimism over a pro-growth '\n",+ " 'agenda was fueling a stock rally and...',\n",+ " 'date': '3 minutes ago',\n",+ " 'source': 'Seeking Alpha',\n",+ " 'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ9sc9IB67rgImvp7XEOuMDzLhJ6uj7-kNRp6vCShZ7Z9KzDqAR2OeKyHeKvg&s',\n",+ " 'position': 1}],\n",+ " 'credits': 1}\n"]}],@@ -790,99 +749,129 @@"{'searchParameters': {'q': 'Italian restaurants in Upper East Side',\n"," 'gl': 'us',\n"," 'hl': 'en',\n",+ " 'type': 'places',\n"," 'num': 10,\n",- " 'type': 'places'},\n",+ " 'engine': 'google'},\n"," 'places': [{'position': 1,\n",- " 'title': \"L'Osteria\",\n",- " 'address': '1219 Lexington Ave',\n",- " 'latitude': 40.777154599999996,\n",- " 'longitude': -73.9571363,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNjU7BWEq_aYQANBCbX52Kb0lDpd_lFIx5onw40=w92-h92-n-k-no',\n",- " 'rating': 4.7,\n",- " 'ratingCount': 91,\n",- " 'category': 'Italian'},\n",- " {'position': 2,\n"," 'title': \"Tony's Di Napoli\",\n",- " 'address': '1081 3rd Ave',\n",+ " 'address': '1081 3rd Ave, New York, NY 10065',\n"," 'latitude': 40.7643567,\n"," 'longitude': -73.9642373,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNbNv6jZkJ9nyVi60__8c1DQbe_eEbugRAhIYye=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 2265,\n",- " 'category': 'Italian'},\n",+ " 'rating': 4.6,\n",+ " 'ratingCount': 2900,\n",+ " 'priceLevel': '$$',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(212) 888-6333',\n",+ " 'website': 'http://www.tonysnyc.com/',\n",+ " 'cid': '1820798058748048984'},\n",+ " {'position': 2,\n",+ " 'title': \"L'Osteria\",\n",+ " 'address': '1219 Lexington Ave, New York, NY 10028',\n",+ " 'latitude': 40.7771565,\n",+ " 'longitude': -73.9571345,\n",+ " 'rating': 4.7,\n",+ " 'ratingCount': 268,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(646) 524-6294',\n",+ " 'website': 'http://www.losterianyc.com/',\n",+ " 'cid': '13046004590297227899'},\n"," {'position': 3,\n",- " 'title': 'Caravaggio',\n",- " 'address': '23 E 74th St',\n",- " 'latitude': 40.773412799999996,\n",- " 'longitude': -73.96473379999999,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipPDGchokDvppoLfmVEo6X_bWd3Fz0HyxIHTEe9V=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 276,\n",- " 'category': 'Italian'},\n",+ " 'title': 'La Pecora Bianca UES',\n",+ " 'address': '1562 2nd Ave, New York, NY 10028',\n",+ " 'latitude': 40.7746814,\n",+ " 'longitude': -73.9538665,\n",+ " 'rating': 4.8,\n",+ " 'ratingCount': 1300,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(212) 300-9840',\n",+ " 'website': 'https://www.lapecorabianca.com/',\n",+ " 'cid': '6580713665095712525'},\n"," {'position': 4,\n",- " 'title': 'Luna Rossa',\n",- " 'address': '347 E 85th St',\n",- " 'latitude': 40.776593999999996,\n",- " 'longitude': -73.950351,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNPCpCPuqPAb1Mv6_fOP7cjb8Wu1rbqbk2sMBlh=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 140,\n",- " 'category': 'Italian'},\n",+ " 'title': 'Masseria East',\n",+ " 'address': '1404 3rd Ave, New York, NY 10075',\n",+ " 'latitude': 40.774910000000006,\n",+ " 'longitude': -73.957163,\n",+ " 'rating': 4.7,\n",+ " 'ratingCount': 299,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(212) 535-3520',\n",+ " 'website': 'http://www.masseriaeast.com/',\n",+ " 'cid': '1165555394655432498'},\n"," {'position': 5,\n",- " 'title': \"Paola's\",\n",- " 'address': '1361 Lexington Ave',\n",- " 'latitude': 40.7822019,\n",- " 'longitude': -73.9534096,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipPJr2Vcx-B6K-GNQa4koOTffggTePz8TKRTnWi3=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 344,\n",- " 'category': 'Italian'},\n",+ " 'title': 'Pavin 86',\n",+ " 'address': '1663 1st Ave, New York, NY 10028',\n",+ " 'latitude': 40.777448,\n",+ " 'longitude': -73.94927679999999,\n",+ " 'rating': 5,\n",+ " 'ratingCount': 11,\n",+ " 'priceLevel': '$20–30',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(646) 368-1666',\n",+ " 'cid': '14616385514965614026'},\n"," {'position': 6,\n",- " 'title': 'Come Prima',\n",- " 'address': '903 Madison Ave',\n",- " 'latitude': 40.772124999999996,\n",- " 'longitude': -73.965012,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNrX19G0NVdtDyMovCQ-M-m0c_gLmIxrWDQAAbz=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 176,\n",- " 'category': 'Italian'},\n",+ " 'title': 'Piccola Cucina Uptown',\n",+ " 'address': '106 E 60th St, New York, NY 10022',\n",+ " 'latitude': 40.7632756,\n",+ " 'longitude': -73.96896149999999,\n",+ " 'rating': 4.6,\n",+ " 'ratingCount': 1900,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(646) 707-3997',\n",+ " 'website': 'https://www.piccolacucinagroup.com/',\n",+ " 'cid': '12569403914342629464'},\n"," {'position': 7,\n",- " 'title': 'Botte UES',\n",- " 'address': '1606 1st Ave.',\n",- " 'latitude': 40.7750785,\n",- " 'longitude': -73.9504801,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipPPN5GXxfH3NDacBc0Pt3uGAInd9OChS5isz9RF=w92-h92-n-k-no',\n",+ " 'title': 'La Voglia NYC',\n",+ " 'address': '1645 3rd Ave, New York, NY 10128',\n",+ " 'latitude': 40.782702,\n",+ " 'longitude': -73.95094569999999,\n"," 'rating': 4.4,\n",- " 'ratingCount': 152,\n",- " 'category': 'Italian'},\n",+ " 'ratingCount': 360,\n",+ " 'priceLevel': '$50–100',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(212) 417-0181',\n",+ " 'website': 'http://www.lavoglianyc.com/',\n",+ " 'cid': '1355377864710486791'},\n"," {'position': 8,\n",- " 'title': 'Piccola Cucina Uptown',\n",- " 'address': '106 E 60th St',\n",- " 'latitude': 40.7632468,\n",- " 'longitude': -73.9689825,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipPifIgzOCD5SjgzzqBzGkdZCBp0MQsK5k7M7znn=w92-h92-n-k-no',\n",- " 'rating': 4.6,\n",- " 'ratingCount': 941,\n",- " 'category': 'Italian'},\n",+ " 'title': 'da Adriano',\n",+ " 'address': '1198 1st Ave, New York, NY 10065',\n",+ " 'latitude': 40.7631383,\n",+ " 'longitude': -73.95919169999999,\n",+ " 'rating': 4.8,\n",+ " 'ratingCount': 240,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(646) 371-9412',\n",+ " 'website': 'http://daadriano.com/',\n",+ " 'cid': '988704178780025788'},\n"," {'position': 9,\n",- " 'title': 'Pinocchio Restaurant',\n",- " 'address': '300 E 92nd St',\n",- " 'latitude': 40.781453299999995,\n",- " 'longitude': -73.9486788,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipNtxlIyEEJHtDtFtTR9nB38S8A2VyMu-mVVz72A=w92-h92-n-k-no',\n",- " 'rating': 4.5,\n",- " 'ratingCount': 113,\n",- " 'category': 'Italian'},\n",+ " 'title': 'L’incontro by Rocco',\n",+ " 'address': '1572 2nd Ave, New York, NY 10028',\n",+ " 'latitude': 40.7749695,\n",+ " 'longitude': -73.95354739999999,\n",+ " 'rating': 4.7,\n",+ " 'ratingCount': 1400,\n",+ " 'priceLevel': '$50–100',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(718) 721-3532',\n",+ " 'website': 'https://www.lincontrobyrocco.com/',\n",+ " 'cid': '7698736469939478155'},\n"," {'position': 10,\n",- " 'title': 'Barbaresco',\n",- " 'address': '843 Lexington Ave #1',\n",- " 'latitude': 40.7654332,\n",- " 'longitude': -73.9656873,\n",- " 'thumbnailUrl': 'https://lh5.googleusercontent.com/p/AF1QipMb9FbPuXF_r9g5QseOHmReejxSHgSahPMPJ9-8=w92-h92-n-k-no',\n",- " 'rating': 4.3,\n",- " 'ratingCount': 122,\n",- " 'locationHint': 'In The Touraine',\n",- " 'category': 'Italian'}]}\n"+ " 'title': 'Water & Wheat',\n",+ " 'address': '1379 3rd Ave, New York, NY 10075',\n",+ " 'latitude': 40.7738747,\n",+ " 'longitude': -73.9573571,\n",+ " 'rating': 4.7,\n",+ " 'ratingCount': 245,\n",+ " 'priceLevel': '$30–50',\n",+ " 'category': 'Italian restaurant',\n",+ " 'phoneNumber': '(646) 484-5054',\n",+ " 'website': 'http://www.waterandwheatnyc.com/',\n",+ " 'cid': '14865033522272348854'}],\n",+ " 'credits': 1}\n"]}],@@ -895,7 +884,7 @@],"metadata": {"kernelspec": {- "display_name": "Python 3 (ipykernel)",+ "display_name": "venv","language": "python","name": "python3"},@@ -909,7 +898,7 @@"name": "python","nbconvert_exporter": "python","pygments_lexer": "ipython3",- "version": "3.10.12"+ "version": "3.12.7"}},"nbformat": 4,