Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #CHANGE THIS NUMBER TO THE ID OF YOUR REVIEW: "reviewId":"722856"
- #To get that id, open the network tab on a book review page and click the helpful button. Inspect the request.
- while true
- do
- curl 'https://api.lulu.com/graphql/' -s -X POST -H 'Accept: */*' \
- -H 'Accept-Language: en' \
- -H 'Accept-Encoding: gzip, deflate, br' \
- -H 'content-type: application/json' \
- --data-raw '{"operationName":"markReviewAsHelpful",
- "variables":{"reviewId":"722856"},
- "query":"mutation markReviewAsHelpful($reviewId: ID!) {\n markReviewAsHelpful(reviewId: $reviewId) {\n id\n helpfulReviewCount\n __typename\n }\n}\n"}' \
- --output - | gzip -d -c | cut -c 68-74;
- done
- #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
Advertisement
Comments
-
- Lulu probably still needs to fix their shit, lmao.
Add Comment
Please, Sign In to add comment
Advertisement