Advertisement
XenoTheStrange

Lulu.com upvote comment script, auto helpful rating spam[Bash, Curl]

Jun 25th, 2022 (edited)
1,231
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #CHANGE THIS NUMBER TO THE ID OF YOUR REVIEW: "reviewId":"722856"
  4. #To get that id, open the network tab on a book review page and click the helpful button. Inspect the request.
  5. while true
  6. do
  7. curl 'https://api.lulu.com/graphql/' -s -X POST -H 'Accept: */*' \
  8.     -H 'Accept-Language: en' \
  9.     -H 'Accept-Encoding: gzip, deflate, br' \
  10.     -H 'content-type: application/json' \
  11.     --data-raw '{"operationName":"markReviewAsHelpful",
  12.        "variables":{"reviewId":"722856"},
  13.        "query":"mutation markReviewAsHelpful($reviewId: ID!) {\n  markReviewAsHelpful(reviewId: $reviewId) {\n    id\n    helpfulReviewCount\n    __typename\n  }\n}\n"}' \
  14.         --output - | gzip -d -c | cut -c 68-74;
  15. done
  16. #if review is down the output will be null or not in gzip format in which case just take the tail off of the command
  17.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement