moved to own repo: https://github.com/helb/videogif
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require("puppeteer"); | |
const websites = [ | |
{ url: "https://www.antikvariaty.cz/", search: "input[name=fulltxt]", submit: "button[type=submit]" }, | |
{ url: "https://www.trhknih.cz/", search: "input#searchbox", submit: "button[type=submit]" }, | |
{ url: "https://antikvariat11.cz/", search: "input#searchbox", submit: "input[name=Submit]" }, | |
{ url: "https://www.antikvariat-benes.cz/", search: "input.srch_input", submit: "a.srch_btn" }, | |
{ url: "https://www.antikvariat-levneknihy.cz/", search: "input[name=hledany_text]", submit: "input.submit" } | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str=""; document.querySelectorAll("a[href*='dl.humble.com']").forEach(link => str += (`wget "${link.href}" -O "${link.href.replace('https://dl.humble.com/', '').replace(/\?.*/, '')}"; `)); console.dir(str) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Trying 2606:4700::6810:f8f9:443... | |
* TCP_NODELAY set | |
* Connected to cloudflare-dns.com (2606:4700::6810:f8f9) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: /etc/ssl/certs | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): | |
* TLSv1.2 (IN), TLS handshake, Server hello (2): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Trying 2a00:1450:4014:800::200e:443... | |
* TCP_NODELAY set | |
* Connected to dns.google.com (2a00:1450:4014:800::200e) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: /etc/ssl/certs | |
} [5 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// run in console on https://www.youtube.com/feed/channels (and wait): | |
document.querySelectorAll("paper-button[subscribed]").forEach((btn, i) => { | |
setTimeout(()=>{ | |
btn.click(); | |
setTimeout(()=>{ | |
document.querySelector("paper-button.style-blue-text").click() | |
}, 500) | |
}, 1000 + (i*2500)); | |
}); |
example input:
[helb@kookaburra~/tmp/alienvault] $ cat input.json
{
"indicators": [
{
"indicator": "127.0.0.1",
"description": "",
"created": "2018-03-13T00:53:33",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
NewerOlder