This project has moved. For the latest updates, please go here.

Tesla Model S CPO Search

Rating: No reviews yet
Downloads: 3
Change Set: a08d6eab8d72
Released: Feb 11, 2016
Updated: Feb 11, 2016 by scottcarnold
Dev status: Beta Help Icon

Recommended Download

Example CPOSearch_Demo.zip
example, 1384K, uploaded Feb 11, 2016 - 3 downloads

Release Notes

Example implementation of the Search Utility and Object Filtering Engine to search Tesla Model S certified pre-owned inventory.

Getting Started:

Requirements:
  • Java version 1.7

Create a folder for the application and unzip the release file into that folder.

Set up the properties and filters. The defaults should work for a quick first test run.

You can run the application from the command line with: java -jar CPOSearch.jar
You may also be able to just double click the jar file. If you just double click the Jar file from Windows, you will likely miss the search result output; however, you may be able to configure the application to send you an email of search results.

Note that the application is a light-weight console application and does not at this time have a windowed user interface. Also, using the default configuration, a search result is only printed to the screen if the search results change. If you want to verify that the application ran or check for errors, check the out.log file in the log folder. The application will write status information to this log on every run, regardless of how the search result notification is configured.

Properties:

You can change the location of the various files and attributes through the cposearch.properties file. Edit this file with a text editor.

As packaged, filters are loaded from the example-filters.txt file, input comes from the ev-cpo-20160211.htm file, and output is printed to the screen. After the first run, a previous-results.dat file will appear in the folder, along with a new log folder that will contain the application log.

The location of all of these files can be changed through the main cposearch.properties file.

The input file is an html file pulled from the ev-cpo.com website. You can get up-to-date input by visiting http://ev-cpo.com, and saving the page (HTML only) to your hard drive (in Firefox, go to File--> Save Page As --> and choose "Web Page, HTML Only" from the type drop down). Replace the previous ev-cpo-20160211.htm file or change the properties to point to the newly downloaded file.

When getting fresh input, if you are interested in this as more than just a demo, consider subscribing to the ev-cpo.com website. Doing so will give you access to more fields to filter on. When subscribed, the only thing different you have to do is log in before saving the page as HTML.

Getting fresh input should work so long as the ev-cpo.com page layout doesn't change significantly. The CPO search application can handle some minor changes in page layout, but larger changes could prevent the page parsing from working correctly. When this happens, you will need to obtain updated HTML parsers for the application.

You can optionally try configuring the application to send you an email of the search results. To do this, comment out the cposearch.properties entries for the ConsoleResultDestination, and uncomment all the entries for the MailResultDestination. You will also need to configure the mail values for an email account. For example, if you wish to use a gmail account, set the properties as follows:
  • result.destination.mail.smtp.auth=true
  • result.destination.mail.smtp.starttls.enable=true
  • result.destination.mail.smtp.host=smtp.gmail.com
  • result.destination.mail.smtp.port=587
  • result.destination.mail.to=comma separated list of destination email addresses
  • result.destination.mail.from=email address for the gmail account
  • result.destination.mail.username=username for the gmail account
  • result.destination.mail.password=password for the gmail account

More information about configuring and running the CPO Search demo application will be made available at a later date through the Documentation on the CodePlex XanderCat OFE website (http://xandercat.codeplex.com).

Reviews for this release

No reviews yet for this release.