Skip to content

Commit

Permalink
Add linkedin company profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 28, 2017
1 parent 7a1ef68 commit a103ea4
Show file tree
Hide file tree
Showing 5 changed files with 243 additions and 3 deletions.
14 changes: 12 additions & 2 deletions __snapshots__/index.js.snap-shot
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,18 @@ exports['lean-data 1'] = {
"url": "http://www.leandatainc.com/account-based-sales-marketing/the-winds-of-change"
}

exports['linkedin 1'] = {
exports['linkedin (company) 1'] = {
"author": null,
"date": null,
"description": null,
"image": null,
"logo": "https://static.licdn.com/sc/h/eahiplrwoq61f4uan012ia17i",
"publisher": "LinkedIn领英",
"title": "LinkedIn",
"url": "https://www.linkedin.com/company/10529043/"
}

exports['linkedin (pulse) 1'] = {
"author": "Ramya Joseph",
"date": "2016-05-26T00:00:00.000Z",
"description": "We had a tweetstorm today on #FinAI and the role AI will play to change financial services. Here is the consolidation of tweets. 1/ Fintech in 2016 is similar to the Internet in 1996 – Yahoo,",
Expand Down Expand Up @@ -778,4 +789,3 @@ exports['zdnet 1'] = {
"title": "Email security startup Agari raises $22 million to help enterprises fight phishing attacks | ZDNet",
"url": "http://www.zdnet.com/article/email-security-startup-agari-raises-22-million-to-help-enterprises-fight-phishing-attacks"
}

18 changes: 18 additions & 0 deletions test/web/linkedin-company/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const snapshot = require('snap-shot')
const {promisify} = require('util')
const {resolve} = require('path')

const fs = require('fs')

const getMetaData = require('../../..')
const readFile = promisify(fs.readFile)

const url = 'https://www.linkedin.com/company/10529043/'

it('linkedin (company)', async () => {
const html = await readFile(resolve(__dirname, 'input.html'))
const metadata = await getMetaData({html, url})
snapshot(metadata)
})
212 changes: 212 additions & 0 deletions test/web/linkedin-company/input.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const readFile = promisify(fs.readFile)

const url = 'https://www.linkedin.com/pulse/how-can-ai-change-financial-services-consolidation-finai-ramya-joseph'

it('linkedin', async () => {
it('linkedin (pulse)', async () => {
const html = await readFile(resolve(__dirname, 'input.html'))
const metadata = await getMetaData({html, url})
snapshot(metadata)
Expand Down
File renamed without changes.

0 comments on commit a103ea4

Please sign in to comment.