Skip to content

Instantly share code, notes, and snippets.

@RusseII
Last active October 29, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RusseII/7b256011714b63699e66e245b9d5cb1e to your computer and use it in GitHub Desktop.
Save RusseII/7b256011714b63699e66e245b9d5cb1e to your computer and use it in GitHub Desktop.
// Open venmo.com and login
// change the `multiplesOf50` variable to how many last people you want to like. This example has it as 20 multiples of 50
// that means it will like the last 1000 requests
// copy paste this command in the command prompt
// RUN PArt 1 wait for it to finish then run PART 2
//PART 1
id = 3129434580348567909 // change to one of the IDS on YOUR page
ids = []
p = []
multiplesOf50 = 20
red = {}
for (i = 0; i < multiplesOf50; i++) {
data = await fetch("https://api.venmo.com/v1/stories/target-or-actor/friends?social_only=False&before_id=" + id + "&limit=50&limit=50", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://venmo.com/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "include"
})
p.push(data)
data.json().then(r => r.data.forEach(v => ids.push(v.id)));
lastId = ids[ids.length-1]
}
// PART TWO !!!!!
num = 0
ids.forEach(id => {
fetch("https://api.venmo.com/v1/stories/" + id + "/likes", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9",
"content-type": "application/json",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-site"
},
"referrer": "https://venmo.com/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"csrftoken2\":\"YqJndMk9tsaOOEaJkAbePjDNJWE5YPlY\"}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
num += 1
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment