itschrisonline

Untitled

Jan 2nd, 2022
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.71 KB | None | 0 0
  1. #! /bin/bash
  2. grcookies="ccsid=; likely_has_account=true; locale=en; blocking_sign_in_interstitial=true; allow_behavioral_targeting=true; u=; p=; _session_id2=a9cb4f6dc92659ee99471e78f22e297f"
  3. grbookid="34499221"
  4. authenticitytoken="wRfyvvwwhlaUthSRXAswN5wW1zllQlr3gkcEBVI43tHY3yhcrUKadVI8XEgSkjZ57CRUysOiVwsDvyTZVgjyeg%3D%3D"
  5.  
  6. grpage25="25"
  7. grpage50="50"
  8. grpage100="100"
  9. # add to currently-reading shelf
  10.   curl "https://www.goodreads.com/shelf/add_to_shelf" \
  11.   -H "Cookie: $grcookies" \
  12.   --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&book_id=$grbookid&name=currently-reading" \
  13.   --compressed
  14.  
  15.   sleep 5
  16.   #set progress 25%
  17.   curl 'https://www.goodreads.com/user_status' \
  18.   -H "Cookie: $grcookies" \
  19.   --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage25&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
  20.   --compressed
  21.     sleep 5
  22.     #set progress 50%
  23.     curl 'https://www.goodreads.com/user_status' \
  24.   -H "Cookie: $grcookies" \
  25.   --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage50&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
  26.   --compressed
  27.     sleep 5
  28.         #set progress 100% and move to read shelf
  29.   curl 'https://www.goodreads.com/user_status' \
  30.   -H "Cookie: $grcookies" \
  31.   --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage100&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
  32.   --compressed
  33.  
  34.     curl "https://www.goodreads.com/shelf/add_to_shelf" \
  35.   -H "Cookie: $grcookies" \
  36.   --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&book_id=$grbookid&name=read" \
  37.   --compressed
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment