Skip to content

Instantly share code, notes, and snippets.

@alirezamika
alirezamika / autoscraper-examples.md
Last active July 15, 2025 10:08
AutoScraper Examples

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@alewolf
alewolf / gist:b37fbd2679afae7abac390090c76c63c
Last active August 25, 2020 11:14
Generic Keywords Remover
/**
* Title: Generic Keywords Remover
* Descritpion: Remove generic keywords from branded search campaigns
* Author: Wolf+Bär Agency, Aleksandar Vucenovic
* Website: https://wolfundbaer.ch
* License: GNU GPLv3
* Version: 0.2
* URL: https://gist.github.com/alewolf/b37fbd2679afae7abac390090c76c63c
* URL:
*/
@knoopx
knoopx / readme.md
Last active August 19, 2021 04:53
Catalina + Windows 10 + Clover
  • make an extfat partition for windows using disk utility
  • make a bootable windows usb (just format disk as fat32 and rsync iso contents)
  • boot windows installation, press shift+f10 to open a console
  • type diskpart, then list volume to figure out windows extfat partion drive letter
  • type dism /Get-WimInfo /WimFile:D:\Sources\install.wim to figure out what window version to install
  • type dism /Apply-Image /ImageFile:D:\Sources\install.wim /index:1 /ApplyDir:C:\ to install specified version into C:
  • type diskpart, then list partition to figure out EFI partition.
  • type select partition #, then assign to "mount" EFI partition, annotate EFI partition letter.
  • type bcdboot C:\Windows /s E: /f uefi to copy Windows UEFI stuff to EFI partition (E:)
@aleandroid
aleandroid / deez.revived.user.js
Last active February 11, 2025 07:05
Deezer Downloader Monkey Script
//---CONFIGURATION---//
const showMp3_128 = true; // Show MP3 @128k download (default: true)
const showMp3_320 = true; // Show MP3 @320k download (default: true)
const showFLAC = true; // Show FLAC download (default: true)
const showAzLyrics = true; // Show azLyrics checkbox (default: true)
const showListDownloader = true; // Show bulk download option (default: true)
const coverSize = 600; // JPEG cover size in px (default: 600)
const coverQuality = 80; // JPEG cover quality from 0 to 100 (default: 80)
//---DEBUG---//
!function(r){var t=0,n="";function e(r){return h(o(r))}function o(r){return i(g(u(r),8*r.length))}function a(r,t){var n=u(r);n.length>16&&(n=g(n,8*r.length));for(var e=Array(16),o=Array(16),a=0;a<16;a++)e[a]=909522486^n[a],o[a]=1549556828^n[a];var h=g(e.concat(u(t)),512+8*t.length);return i(g(o.concat(h),640))}function h(r){for(var n,e=t?"0123456789ABCDEF":"0123456789abcdef",o="",a=0;a<r.length;a++)n=r.charCodeAt(a),o+=e.charAt(n>>>4&15)+e.charAt(15&n);return o}function c(r){for(var t="",e=r.length,o=0;o<e;o+=3)for(var a=r.charCodeAt(o)<<16|(o+1<e?r.charCodeAt(o+1)<<8:0)|(o+2<e?r.charCodeAt(o+2):0),h=0;h<4;h++)8*o+6*h>8*r.length?t+=n:t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a>>>6*(3-h)&63);return t}function f(r,t){var n,e,o,a,h,c=t.length,f=Array(Math.ceil(r.length/2));for(n=0;n<f.length;n++)f[n]=r.charCodeAt(2*n)<<8|r.charCodeAt(2*n+1);var u=Math.ceil(8*r.length/(Math.log(t.length)/Math.log(2))),i=Array(u);for(e=0;e<u;e++){for(h=Array(),a=0,n=0;n<f.length;n++)a=(a<<16)+f[n
@siliconvallaeys
siliconvallaeys / Exclude Close Variants
Last active August 7, 2019 13:13
Manage close variants to automatically exclude as negative keywords
// Report on how close variants relate to your keywords in Google Ads
// Automatically exclude queries with poor performance or a big Levenshtein distance
// Free AdWords Script courtesy of Optmyzr.com
// October 22, 2018
function main() {
// -----------------
// Edit this section with your preferences
// ----------------
@siliconvallaeys
siliconvallaeys / Conflicting Negative Keywords for Converting Queries
Created October 9, 2018 23:21
Find negative keywords that block queries that have converted in the past
/*
// AdWords Script: Negatives Blocking Converting Queries
// -----------------------------------------------------------------------------
// Copyright 2017 Optmyzr Inc., All Rights Reserved
//
// This script identifies negative keywords that are now blocking ads from
// appearing for previously converting queries
//
// For more PPC management tools, visit www.optmyzr.com
//
@siliconvallaeys
siliconvallaeys / Analyze Close Variant Search Terms
Last active July 24, 2019 03:11
Compare phrase and exact match Google Ads keywords with the close match variants they are shown for
// Report on how close variants relate to your keywords in Google Ads
// Free AdWords Script courtesy of Optmyzr.com
// September 12, 2018
function main() {
// -----------------
// Edit this section with your preferences
// ----------------
var time = 'LAST_30_DAYS';
@siliconvallaeys
siliconvallaeys / Exclude Mobile App Placements
Last active January 14, 2020 03:10
Add poorly performing mobile app placements on GDN as excluded targets
/****************************
* Exclude Mobile App ad placements that perform poorly
* Version 1.0 (Aug 08, 2018)
*
* Created By: Optmyzr
* A supported version of this script is available at www.optmyzr.com
****************************/
function main() {
@nikolaiwiskow
nikolaiwiskow / sattelite_receiver_script.gs
Last active October 25, 2018 19:59
A script that will a run an Adwords Script hosted on Google Drive. Full information here: http://adwords-scripted.com/en/scripts/satellite-script
//////////////////////////////////////// SATELLITE RECEIVER SCRIPT by Nikolai Wiskow /////////////////////////////////////////
/* www.adwords-scripted.com
*
* This Adwords Script will fetch and run a Script that you have hosted on your Google Drive. I've used this method to
* run the same Script in multiple accounts, only having to update the hosted Script when I happen to make changes to it.
*
*/
function main() {