Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a web scraper with python and beautiful soup. https://www.cargurus.com/Cars/inventorylisting/viewListingDetailAjax.action?inventoryListing=198191750 Please write the code needed to get all of the information you need for a
Write a web scraper with python and beautiful soup.
https://www.cargurus.com/Cars/inventorylisting/viewListingDetailAjax.action?inventoryListing=198191750
Please write the code needed to get all of the information you need for a singular listing. you just send an http get request to that url and parse the response body (it's just a string) for the specific bits of info you you need.
next thing you do is repeat these steps to get all of the inventoryListing values you need. then you can iterate over your collection of values making calls to the url we found above to get all of the info you need.
the information I need from the listing is. dealer name, phone number, city, state, car name.
I need it to write to an excel spreedsheet as well. I have started to work on the code, but am having some issues. I want you to iterate through all the inventory listings by looping through and changing the inventoryListing= parameter in the URL call. I will include images to help explain. Please show your programs output to show your solution works. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started