Budget way of grabbing all Gfycats from your account.
Go to file
2023-07-01 23:01:41 +00:00
.gitignore Initial implementation 2023-07-01 22:58:33 +00:00
GfycatGrab.sh Expand README, check if URLs are found before trying to iterate 2023-07-01 23:00:52 +00:00
LICENSE Add LICENSE I guess 2023-07-01 23:01:41 +00:00
README.md Expand README, check if URLs are found before trying to iterate 2023-07-01 23:00:52 +00:00

GfycatGrab

Budget way of grabbing all Gfycats from your account.
I haven't tested this very much. Worked fine with my account, since I only have 83 GIFs saved total, so I only had to save one request from my browser.
In theory the script will scan every JSON file you have in the directory you run it in, and download every GIF in each JSON file (assuming you follow the steps).

Requirements

  1. jq
  2. curl

To use the script

  1. Visit your Gfycat profile page, with your browser's developer console (network tab) open
  2. Filter URLs by /me/gfycats
  3. Copy the JSON response from the "GET" request. Save it as any-name.json
  4. If you have more than 100 GIFs in your profile, repeat steps 1-3 for the next page (scroll to bottom), and save it as any-name-2.json
  5. Run the script: ./GfycatGrab.sh
    • By default the script downloads to ./data (relative to where the script is saved).
    • If you want to download to a different directory, specify the GFYCAT_DIR environment variable: GFYCAT_DIR=/path/to/where/you/want/download/files ./GfycatGrab.sh