Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active June 15, 2025 13:27
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 $?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment