Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active July 9, 2025 11:17
Show Gist options
  • Save fu-sen/053979bd8c4ad743a735bcb6579b8e92 to your computer and use it in GitHub Desktop.
Save fu-sen/053979bd8c4ad743a735bcb6579b8e92 to your computer and use it in GitHub Desktop.
Reocities-API - https://www.reocities.xyz/
#!/bin/sh
apikey="reo_......" # Get https://www.reocities.xyz/api-keys
deploypath="www"
find ${deploypath} -type f | while read -r fname
do
echo ${fname}
deploydir="${fname%/*}/"
deploydir=${deploydir#*/}
curl -X POST -H "X-API-Key: ${apikey}" -F "file=@${fname}" -F "folder=${deploydir}" -F "overwrite=true" https://www.reocities.xyz/api/upload
echo
sleep 6 # Rate Limits: 10 requests per minute
done
exit $?
@fu-sen
Copy link
Author

fu-sen commented Jul 9, 2025

Reocities is temporarily disabling the API. So this doesn't work right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment