Jay Grossman

Chrome extension to search for person's address across multiple sites

Chrome extension to search for person's address across multiple sites

Chrome extensions allow developers to add functionality to your Chrome Browser. While folks can do malicious things within chrome extensions, I have had a lot of fun building extensions that can improve my personal productivity. I blogged about an extension in 2013 that injected the WeightWatchers points values next to food items on grubhub and other sites.

The Challenge:

I run an autograph community (sportscollectors.net) where collectors mail letters to athletes to request autographs. Sometimes I want to locate or confirm an address of a player, and I'd like to make the process more efficient.

I want to initiate searches for a person's address on multiple free sites in one action.


My Solution: Address Finder Extension

TDLR - I built a Chrome extension described below:

Project Requirements:

Chrome extension needs to:

  1. Prompt the user for information about the person:
    • First Name (required)
    • Last Name (required)
    • City
    • State
    • Age
  2. Initiate searches on the following sites:
  3. Display the results from each site in a new tab.

Please Note:
I decided to open the sites in new chrome tabs, rather trying to scrape the relevant content across 9 sites and aggregate it into a single view because:
  • these sites change their layout often
  • I didn't want to deal with different types of CAPTCHAs
  • there is valuable extra data + context on some sites beyond the person's address
  • it would likely be in violation of some Terms of Service

How to use the extension:

In the browser's toolbar, click on the home icon icon and the search form will appear:

search_form

In the form below, I am searching for Otis Sistrunk (former Oakland Raiders All Pro and Super Bowl champ). Once the First Name and Last Name fields are populated, the Search button will be enabled.

search_form

After I click the Search button and the extension will open a new tab for each of the sites listed above with the search results for the person you entered:

browser_with_tabs_open

Installing the extension:

  1. Clone the AddressFinderExtension repo locally to your computer
  2. Open Chrome and navigate to chrome://extensions/

    You will see a page like this:
    install extension

  3. Click the "Load unpacked" button and navigate to the folder where you cloned the repo. Select the folder and click "Select Folder".
  4. You will see an entry for Address Finder Extension 1.0 as shown in the screen above.

Enabling the extension:

enable extension

  1. Click on the puzzle icon in the browser toolbar (as shown in the screen above)
  2. Click on the pin icon icon next to Address Finder Extension
  3. You should now see the home icon icon in the toolbar next to the puzzle icon

The code for the extension:

Code for this extension is posted on github:
https://github.com/jaygrossman/AddressFinderExtension

The important files for this type of extension:

  • manifest.json - specifies basic metadata (name and version) and some aspects of your extension's functionality
  • popup.html - the HTML for the search form
  • validation.js - enables search button only when required fields are supplied
  • popup.js - using the form values, opens each site's specific search URL in a new browser tab


Frequent Questions about searching for addresses:

Is the information on these sites accurate?

The sites I am searching are free sites that provide information about people. The information is not always accurate or completely up to date.

I have stronger confidence when I see that multiple sites have the same information and when the results indicate they have been updated recently.

How do you know the result you are seeing is for the person you are searching for?

It is more challenging when searching for people that have common names.

I generally start by looking for the person's age and city to confirm that the address is for the person I am searching for.

Also many of these sites provide a list of previous addresses the person has lived at or owned, so I try to cross reference those addresses with ones I may know (they are often recorded on sportscollectors.net).

What if the person you are searching for is not found?

It is possible that the person you are searching for is not in the databases of these free sites. It is also possible that the person has taken steps to remove their information from these sites.