Skip to content

Instantly share code, notes, and snippets.

View kiransiluveru's full-sized avatar
🏠
Working from home

Siluveru Kiran Kumar kiransiluveru

🏠
Working from home
View GitHub Profile
@kiransiluveru
kiransiluveru / webp-images.html
Created May 29, 2020 10:19
Webp images usage guide
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WEBP images </title>
<script type="text/javascript">
function getDimensions() {
let width = window.innerWidth
@kiransiluveru
kiransiluveru / NumberOfEmployeesInCompany.js
Created February 12, 2020 16:54
Scrape linkedin to get Number of employees in the company
let puppeteer = require('puppeteer')
let cheerio = require('cheerio')
const EMAIL_SELECTOR = '#username';
const PASSWORD_SELECTOR = '#password';
const SUBMIT_SELECTOR = '#app__container > main > div > form > div.login__form_action_container > button';
const LINKEDIN_LOGIN_URL = 'https://www.linkedin.com/login?fromSignIn=true&trk=guest_homepage-basic_nav-header-signin';
if (process.argv[2] !== undefined) {
(() => {