/tesla-crawler

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

Primary LanguagePython

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://.../"