RemoveBg Scraper without apikey
Project description
Install Library
pypi
$ pip3 install xremovebg
github
$ pip install git+https://github.com/krypton-byte/removebg
Library
from removebg import RemoveBg
rb=RemoveBg()
res=rb.upload('images.png')
res.save('saved.png')
Run server
$ python -m removebg -p 8000
Command Line
without session
$ python -m removebg --file=3.jpg --json 2>/dev/null
{
"url": "https://o.remove.bg/downloads/47b11d7f-3157-4dea-88ba-a47632c348a2/3-removebg-preview.png",
"filename": "3-removebg-preview.png",
"width": 500,
"height": 500,
"foreground_type": "product",
"rated": false
}
save session
$ python -m removebg --file=3.jpg --save-session=session --json 2>/dev/null
{
"url": "https://o.remove.bg/downloads/47b11d7f-3157-4dea-88ba-a47632c348a2/3-removebg-preview.png",
"filename": "3-removebg-preview.png",
"width": 500,
"height": 500,
"foreground_type": "product",
"rated": false
}
load session
$ python -m removebg --file=3.jpg --load-session=session --json 2>/dev/null
{
"url": "https://o.remove.bg/downloads/47b11d7f-3157-4dea-88ba-a47632c348a2/3-removebg-preview.png",
"filename": "3-removebg-preview.png",
"width": 500,
"height": 500,
"foreground_type": "product",
"rated": false
}
get histories removebg
$ python -m removebg --get-histories --json 2>/dev/null
[{
"url": "https://o.remove.bg/downloads/47b11d7f-3157-4dea-88ba-a47632c348a2/3-removebg-preview.png",
"filename": "3-removebg-preview.png",
"width": 500,
"height": 500,
"foreground_type": "product",
"rated": false
}]
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
xremovebg-0.2.tar.gz
(4.6 kB
view details)
File details
Details for the file xremovebg-0.2.tar.gz
.
File metadata
- Download URL: xremovebg-0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0b807936eb9df6700de047e7d5a7f8a8bbaed96b0c06272c137a0c29fb7875 |
|
MD5 | a975fbf0389c95ef3f30cb8d3482537f |
|
BLAKE2b-256 | 83c6812d916caead13681240c0439634e60acd3395e39873c91d412012c21645 |