Skip to content

Instantly share code, notes, and snippets.

View albertogalan's full-sized avatar

Alberto F Galan albertogalan

  • Madrid
View GitHub Profile
@albertogalan
albertogalan / linkedin_extract.py
Created April 9, 2019 08:00 — forked from lobstrio/linkedin_extract.py
Scraping Linkedin profiles information through Selenium Python
# python package
import csv
import time
import random
import sys
import os
# selenium package
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
@albertogalan
albertogalan / linkedin_scraper.py
Created April 9, 2019 07:57 — forked from scrapehero/linkedin_scraper.py
Python script to scrape a company details from a public company page on LinkedIn.com. Written as part of How to Scrape educational post - https://www.scrapehero.com/tutorial-scraping-linkedin-for-public-company-data/
from lxml import html
import csv, os, json
import requests
from exceptions import ValueError
from time import sleep
def linkedin_companies_parser(url):
for i in range(5):
try: