Skip to content

Instantly share code, notes, and snippets.

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

rvvvt rvvvt

💭
hail, traveler.
View GitHub Profile
@arnoclr
arnoclr / index.js
Last active February 2, 2022 03:41
Instagram JS images scraper by tag
const IMAGES_NUM = 250
let imgSrcs = new Set()
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function appendImages() {
var imgs = document.getElementsByTagName("img")
@KMurphs
KMurphs / scrappe.js
Last active February 16, 2023 16:00
Save JS Object as file from DevTools
/**
* Given some Javascript object, the function will have the browser download it as a
* json file (exactly like if it was downloaded from some server).
* The content of the file downloaded by the browser would be the "data" object input.
* One could also pass a name for the file to be downloaded to the function.
* References:
* - https://www.freecodecamp.org/news/how-to-use-the-browser-console-to-scrape-and-save-data-in-a-file-with-javascript-b40f4ded87ef/
* - https://github.com/edubey/browser-console-crawl/blob/master/single-story.js
* @date 2021-06-18
* @param {object} data
@vainolo
vainolo / Method2.cs
Last active February 23, 2021 22:43
public static void Scrape()
{
var scraper = new HtmlWeb();
var page = scraper.Load("https://vainolo.z14.web.core.windows.net/WebScraping.html");
var nodes = page.DocumentNode.Descendants().SkipWhile(e => e.Id != "Techniques").Skip(1).TakeWhile(e => e.Name != "h2");
foreach (var currNode in nodes)
{
if(currNode.GetClasses().Contains("mw-headline"))
{
@judero01col
judero01col / Service KMS
Last active July 12, 2024 21:05
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@beatobongco
beatobongco / scrape.js
Created September 3, 2019 09:30
Scraping a webpage via console
// Create an interval which will keep scrolling downwards
const interval = setInterval(() => {
window.scrollTo(0, document.body.scrollHeight)
}, 250)
// If there are no more items, you can call `clearInterval(interval)` to stop scrolling
// Now copy the below code to scrape data and download a file containing the data
;(() => {
// Define a function to scrape elements we want
@phpenterprise
phpenterprise / linkedin-auto-connect.js
Last active February 28, 2024 01:43
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,
@SourcingDenis
SourcingDenis / linkedin-loop.js
Created January 18, 2019 07:18 — 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
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - */
//* */
//* Filename: gist.2d = dataCapture.js */
//* */
//* Copyright (c) 2018-2019 Otto Grajeda. All rights reserved. */
//* Contact info: ottograjeda@gmail.com. See additional disclaimers below. */
//* */
//* NOTE 1: Portions of code (mainly API methods) are copyrighted by Google LLC. */
//* NOTE 2: Code is NOT Open Source or Production Ready. It is working sample code. */
//* NOTE 3: For support or code questions search keywords @ Google or Stack Overflow. */
@ping
ping / Program.cs
Created November 30, 2018 03:10
Async Test
using System;
using System.Net.Http;
using System.Threading.Tasks;
public class Program
{
public static void Main()
{
WriteLine("A: Main");
var googleTask = CallGoogleAsync();
@milesflo
milesflo / twitter-follow-clicker.js
Last active February 11, 2020 21:41
A tiny GUI-automation script for following accounts on Twitter
/**
Why?:
This script is useful for following a large list of accounts straight from your browser.
There are many reasons to use this... Maybe you want to follow everyone in a community but you
can't be bothered to click on all those buttons... Maybe you want to follow all these accounts
in the hopes that they'll follow you back, giving you lots of free followers for doing nothing
How:
1. Navigate to a twitter page with multiple [Follow] buttons visible...
- Scrolling to the bottom of a page may list more... Do this for maximum efficiency