The goal of this project is to simply look at different people’s linkedin accounts.
Currently using ruby 2.3.3.
I have only ran this on OSX and Linux (Ubuntu). I do not have a Windows environment.
Let’s get it rolling.
A simple bundle install will do:
bundle install
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
Don’t need to use rake for db:create anymore! It’s the 2000’s.
rails db:create
rails db:migrate
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
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"
I didn’t write any tests. I’m normally better than this.
Still need to figure this out!
- 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.
field | type | purpose | example |
---|---|---|---|
name | string | store the term | “software engineer” |
field | type | purpose | example |
---|---|---|---|
name | string | full name of the person | “Evan Dancer” |
uid | string | linkedin id for the profile | ??? |
connection_distance | integer | 1st, 2nd, 3rd degree connections | 3rd |
created_at | datetime | when they were viewed | |
search_term_id | reference |
To not look super sketch, I will want to do some random mouse movements between a lot of actions.