Giter Site home page Giter Site logo

linkedin-scraper's Introduction

Linkedin-scraper is a gem for scraping linkedin public profiles. You give it an URL, and it lets you easily get its title,name,country,area,current_companies .

Installation

Install the gem from RubyGems:

gem install linkedin-scraper

This gem is tested on Ruby versions 1.8.7, 1.9.2 and 1.9.3.

Usage

Initialize a scraper instance for an URL, like this:

profile = Linkedin::Profile.get_profile('http://in.linkedin.com/pub/yatish-mehta/22/460/a86')

Then you can see the scraped data like this:

profile.first_name          #the First name of the contact

profile.last_name           #the last name of the contact

profile.title               #the linkedin job title

profile.location            #the location of the contact

profile.country             #the country of the contact

profile.industry            #the domain for which the contact belongs

profile.past_companies
#Array of hash containing its past job companies and job profile
#Example
#  [
#    [0] {
#          :past_title => "Intern",
#        :past_company => "Sungard"
#        },
#    [1] {
#          :past_title => "Software Developer",
#        :past_company => "Microsoft"
#        }
#  ]
profile.current_companies
#Array of hash containing its current job companies and job profile
#Example
#  [
#    [0] {
#          :current_title => "Intern",
#        :current_company => "Sungard"
#        },
#    [1] {
#          :current_title => "Software Developer",
#        :current_company => "Microsoft"
#        }
#  ]

profile.linkedin_url        #url of the profile

profile.recommended_visitors
#Its the list of visitors "Viewers of this profile also viewed..."
#attr_accessor :recommended_visitors = [
#    [0] {
#           :link =>  href="http://in.linkedin.com/in/nileshavhad?trk=pub-pbmap",
#           :name => "Nilesh Avhad",
#          :title => "Engineering Manager",
#        :company => "Better Labs"
#    },

ZOMG Fork! Thank you!

You’re welcome to fork this project and send pull requests. I want to thank specially:

To Do

* Copyright © 2009-2012 sagar junnarkar, released under the MIT license Contributers yogesh,yatish,sagar

Please make these changes

linkedin-scraper's People

Contributors

sagarjunnarkar avatar yatish27 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.