Skip to content
Crawls the official Tesla CPO (certified pre-owned) inventory and posts to Slack. DEPRECATED: see https://github.com/erikreed/cpotrace/blob/master/app/crawler.py instead
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
crawler.py include summary counts by badge Nov 2, 2016
requirements.txt

README.md

Tesla Crawler CPO w/ Slack Client

This crawls the official Tesla CPO (certified pre-owned) inventory based on some criteria and posts the results to a Slack channel.

The default filter just checks for P85 with Autopilot -- modifying the filter is trivial:

def filter_p85_autopilot(df):
    return df[df['isAutopilot'] & df['Badge'].isin(['P85', 'P85+'])]

Lastly, the URL hit has a metroId -- the value of 3 corresponds to SF; removing it shows Teslas for the entire country. The only country code I had success with was 'US'.

Usage

$ python crawler.py --slack-webhook="https://.../"
You can’t perform that action at this time.