Free unlimited file hosting using Discord server
Project description
pyscord-storage
Free unlimited file hosting using Discord server
Installation
pip install pyscord-storage --upgrade
Example
Code
import pyscord_storage
filename = "example.jpg"
file = "https://cdn.discordapp.com/attachments/858938620425404426/980409229393395722/waifu-animemoeus.jpg"
# file = '/path/to/your/file'
data = pyscord_storage.upload(filename, file)
Result
{
"status": 200,
"data": {
"id": "860049950065819658",
"filename": "ynm.jpg",
"size": 130407,
"url": "https://cdn.discordapp.com/attachments/858938620425404426/860049950065819658/ynm.jpg",
"proxy_url": "https://media.discordapp.net/attachments/858938620425404426/860049950065819658/ynm.jpg",
"width": 537,
"height": 954,
"content_type": "image/jpeg"
}
}
API
About
- Max upload size limit is 8MB. Click here for detail.
- media.discordapp.net & cdn.discordapp.com. Click here for detail.
- proxy_url. Click here for detail.
- How long my Discord file link will work? Click here for detail.
Increase Upload Limit
- I don't know if this will work, but I think if the server gets a boost, we can increase the upload limit up to 50 MB or 100MB.
- https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-
- Discord Server https://discord.gg/kZuWeKzgkq
Example Implementation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyscord-storage-1.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pyscord_storage-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9423667f3e2fce665d72b67d4770fcc1acedc84e6057a201f2acd36c79b3faac |
|
MD5 | 54108d377a0a0baff1ae5ee68f04eedd |
|
BLAKE2b-256 | 4231d4d92be7fed0f3df2b3998d7b5c82a9c6055eab33d89cafb9aae0ef202bb |