Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- grcookies="ccsid=; likely_has_account=true; locale=en; blocking_sign_in_interstitial=true; allow_behavioral_targeting=true; u=; p=; _session_id2=a9cb4f6dc92659ee99471e78f22e297f"
- grbookid="34499221"
- authenticitytoken="wRfyvvwwhlaUthSRXAswN5wW1zllQlr3gkcEBVI43tHY3yhcrUKadVI8XEgSkjZ57CRUysOiVwsDvyTZVgjyeg%3D%3D"
- grpage25="25"
- grpage50="50"
- grpage100="100"
- # add to currently-reading shelf
- curl "https://www.goodreads.com/shelf/add_to_shelf" \
- -H "Cookie: $grcookies" \
- --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&book_id=$grbookid&name=currently-reading" \
- --compressed
- sleep 5
- #set progress 25%
- curl 'https://www.goodreads.com/user_status' \
- -H "Cookie: $grcookies" \
- --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage25&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
- --compressed
- sleep 5
- #set progress 50%
- curl 'https://www.goodreads.com/user_status' \
- -H "Cookie: $grcookies" \
- --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage50&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
- --compressed
- sleep 5
- #set progress 100% and move to read shelf
- curl 'https://www.goodreads.com/user_status' \
- -H "Cookie: $grcookies" \
- --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&user_status%5Bpercent%5D=$grpage100&user_status%5Bbody%5D=&user_status%5Bbook_id%5D=$grbookid" \
- --compressed
- curl "https://www.goodreads.com/shelf/add_to_shelf" \
- -H "Cookie: $grcookies" \
- --data-raw "utf8=%E2%9C%93&authenticity_token=$authenticitytoken&book_id=$grbookid&name=read" \
- --compressed
Advertisement
Add Comment
Please, Sign In to add comment