This file contains hidden or 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
copy(await (async () => { | |
var lastId = localStorage.SLaks___lastExportedId || /* Paste the last ID from the spreadsheet here: */ ""; | |
function takeWhile(cb) { | |
let found = false; | |
return x => { | |
if (found) return false; | |
if (cb(x)) return true; | |
found = true; | |
return true; | |
} |
This file contains hidden or 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 this in LINQPad, and add a reference to my https://github.com/ShomreiTorah/Libraries/tree/master/ShomreiTorah.Common | |
const string domain = "<TODO: insert domain here>"; | |
static readonly Regex parseId = new Regex(@"action=edit_addresses&id=(\d+)"); | |
static readonly Regex findSccsrf = new Regex(@"<input type=""hidden"" name=""sccsrf"" value=""(\w+)""/>"); | |
bool dryRun = false; | |
async Task Main() { | |
var cookies = new CookieContainer(); |
OlderNewer