/linked-out

👀 Look at up to 200 LinkedIn profiles a day

Primary LanguageRuby

Linked Out

The goal of this project is to simply look at different people’s linkedin accounts.

Ruby version

Currently using ruby 2.3.3.

System dependencies

I have only ran this on OSX and Linux (Ubuntu). I do not have a Windows environment.

Setup

Let’s get it rolling.

Install your stuff

A simple bundle install will do:

bundle install

Set your own secrets

These are where my secrets are stored. You probably don’t want that.

rm config/secrets.yml.enc
rails secrets:setup
rails secrets:edit

Add this (with your own credentials) to your secrets file:

shared:
  email: me@website.com
  password: password1234

Create the database

Don’t need to use rake for db:create anymore! It’s the 2000’s.

rails db:create
rails db:migrate

Add some search terms

You will need to add some search terms. I added some basic terms and if you are super lazy, feel free to copy.

If you want to add your own, edit db/seeds.rb. When you are done, run this:

rails db:seed

Visit some profiles

We have reached the point where the magic happens:

rails linked_out:random_search

If you want to search by a specific SearchTerm, you can run:

rails linked_out:search SEARCH_TERM="tom"

How to run the test suite

I didn’t write any tests. I’m normally better than this.

Deployment instructions

Still need to figure this out!

Constraints

  • Can only view 200 profiles per day. We should go significantly less to start out.
  • We only want to view a profile once every four months.
  • We want to dynamically be able to add new search terms for a user.

Schema

SearchTerms

fieldtypepurposeexample
namestringstore the term“software engineer”

Profiles

fieldtypepurposeexample
namestringfull name of the person“Evan Dancer”
uidstringlinkedin id for the profile???
connection_distanceinteger1st, 2nd, 3rd degree connections3rd
created_atdatetimewhen they were viewed
search_term_idreference

Additional

Randomizer

To not look super sketch, I will want to do some random mouse movements between a lot of actions.