Created
December 31, 2024 16:18
-
-
Save nbcchen/da0dd4efa9c1396fd8c1e726a7cdc238 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const brands = ["Toyota", "Jeep", "Mazda", 'Volvo', 'Ford'].map(brand => { | |
const url = new URL( | |
"https://www.atlanticchevrolet.com" | |
); | |
url.searchParams.append("compositeType", "preowned"); | |
url.searchParams.append("make", brand); | |
url.pathname = '/all-inventory/index.htm'; | |
console.log(url.href); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vehicles = Array.from($(".vehicle-card-title")); | |
for (const v of vehicles) { | |
console.log(v.children[0].children[1].innerText); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment