Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How do I find a URL that will return a JSON collection of all of Tesla’s Superchargers, stores, service centers, body shops, destination chargers, and demo drive locations?

What I have tried:

I am attempting to scrape Tesla's website (https://www.tesla.com/findus/list) for Superchargers, stores, service centers, body shops, destination chargers, and demo drive locations.

Used Jupyter notebooks to run the code.

from bs4 import BeautifulSoup
import urllib

html_text = urllib.request.urlopen("https://www.tesla.com/findus/list").read()
soup = BeautifulSoup(html_text, 'html.parser') 


Initial code concept:

1. Inspect website HTML code.
2. Convert to JSON
I'm not getting any output and the code is taking 2+ hours to run through.
Posted
Updated 22-Nov-23 20:52pm
v2
Comments
Richard MacCutchan 23-Nov-23 4:03am    
The issue is with the data returned from the Tesla website. there is nothing that anyone here can do to change that.

1 solution

My first thought is to search for Telsa API using Google search: tesla api - Google Search[^]

The first result is this: Tesla API - Tesla API[^] - This is all about the cars.

My second Google search was: Tesla’s Superchargers api - Google Search[^]

.. and this gave me some interesting results:
* Nearby Charging Sites - Tesla JSON API (Unofficial)[^]
* GitHub - wattapp/superchargers: The GraphQL API for finding Tesla Superchargers, destination chargers, stores, and service centers.[^]
* Find Nearby Tesla Superchargers API - Zyla API Hub[^]
* and many more...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900