Skip to content

Instantly share code, notes, and snippets.

View rvvvt's full-sized avatar
💭
hail, traveler.

rvvvt rvvvt

💭
hail, traveler.
View GitHub Profile
@rvvvt
rvvvt / linkedin-auto-connect.js
Created September 3, 2019 01:27 — forked from phpenterprise/linkedin-auto-connect.js
Linkedin Auto Connect/Invite Script
(Linkedin = {
release: '1.0.5 stable',
data: {},
config: {
autoStart: true,
inspectorSpeed: 5000,
sendSpeed: 4000,
pagerSpeed: 10000,
scrollDownAuto: 600,
debug: true,
@rvvvt
rvvvt / linkedin-loop.js
Created August 29, 2019 07:11 — forked from jaseclamp/linkedin-loop.js
meetup linkedin search
/*
INSTRUCTIONS
1. Open this file in notepad or something similar
2. Paste your list of names where it says replace names
3. Go to linkedin and line up a people search for your city
4. In google chrome. In Windows and Linux hit: Ctrl + Shift + J. On Mac hit: Cmd + Option + J.
5. Copy paste this whole script in to the console and hit enter
6. leave the window active while it collects results
7. You should get a tab seperated CSV that you can open in Excel
@rvvvt
rvvvt / 100.csv
Last active July 26, 2019 05:47
Pull one named column from a CSV file with multiple columns and puts it into a list.
id query
48843 this is a sample query
3894 also a sample query
9349589 so on and so forth
# -*- coding: utf-8 -*-
from multiprocessing import Pool
from multiprocessing.dummy import Pool as ThreadPool
import re, os
from urllib2 import urlopen
Path = os.path.dirname(os.path.realpath(__file__))
with open(Path+'\\url.txt', 'r') as file:
urls = file.readlines()
@rvvvt
rvvvt / states_hash.json
Created June 30, 2019 15:01 — forked from mshafrir/states_hash.json
US states in JSON form
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
var myWindow = window.open();
var imglink = document.querySelectorAll('img');
for (i=0;i<imglink.length;i++){myWindow.document.write("<p><a href=\"" + imglink[i].src + "\" target=\"\_blank\">link</a>");}
@rvvvt
rvvvt / CssSelectorCheatSheet.txt
Created April 15, 2019 01:42
Css Selectors for Selenium WebDriver using c# but useful for any language.
see the original post on https://www.binaryclips.com/2016/03/css-selectors-for-selenium-webdriver.html?spref=bl
Css Selectors for Selenium WebDriver
CSS selectors are a great and fast way to locate elements in Selenium WebDriver. I have listed down some basic CSS Selectors for Selenium WebDriver which are commonly used. The goal of this tutorial is to explain as simply as possible about various types of usages of CSS Selectors using simple examples.
Css Selector Using ID Selector
Consider the below HTML
<input id="userid" type="text" value="userid" />
<button id="btnid">Submit button</button>
@rvvvt
rvvvt / Linkedin_Login.js
Created April 10, 2019 06:26
Linkedin Login
STEPS:
1.- Create an app:
in linkedin: https://www.linkedin.com/developers/apps
2.- Create your linkedin login URL:
Fill the following URL with your developer information: https://www.linkedin.com/oauth/v2/authorization
example with response_type, client_id, redirect_uri, state:
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=86zig0sfofozk1&redirect_uri=https://localhost:8443/pro&state=aRandomString
3.- Get the user code from linkedin:
var express = require("express");
var app = express();
var port = process.env.PORT || 3700;
var io = require('socket.io').listen(app.listen(port));
var Instagram = require('instagram-node-lib');
var http = require('http');
var request = ('request');
var intervalID;
/**
@rvvvt
rvvvt / spamhaha.py
Created March 19, 2019 03:17 — forked from liveashish/spamhaha.py
Sarahah spam bot: A life saver! 🔥 💪
import time
import requests
users_to_attack = ['USER_NAME', ] #list of users to be attacked
def sarahah_post(user, msg):
s = requests.Session()
homeurl = 'https://' + user + '.sarahah.com/'
home = s.get(homeurl)