Bulk Bing Image Downloader (bbid) é downloader que:
pip install git+https://github.com/ostrolucky/Bulk-Bing-Image-downloader
usage: bbid.py [-h] [-f] [-o OUTPUT] [-a] [-g] [--filters FILTERS] [--limit LIMIT] [-t THREADS]
search_string [search_string ...]
Bing image bulk downloader
positional arguments:
search_string Keyword to search
optional arguments:
-h, --help show this help message and exit
-f, --search-file search-string is a path to a file containing search strings line by line
-o OUTPUT, --output OUTPUT
Output directory
-a, --adult-filter-off
Disable adult filter
-g, --animated-gif Disable adult filter
--filters FILTERS Any query based filters you want to append when searching for images, e.g. +filterui:license-L1
--limit LIMIT Make sure not to search for more than specified amount of images.
-t THREADS, --threads THREADS
Number of threads
Ou se desejar, você pode assistir ao tutorial do YouTube
bbid hello world
Você pode aplicar alguns dos filtros do Bing, como filtro por licença, tamanho da imagem, etc. O BBID não expõe a você variantes legais e legíveis humanas, mas permite que você utilize todos os filtros expostos pelo site do Bing. Tudo o que você precisa fazer é aplicar filtros que deseja via site do Bing e copiá -los do URL. Eles estão localizados depois &qft=
e antes &
.
Por exemplo, ao procurar code
e aplica filtros past week
e tamanho da imagem large
, o URL que você verá será http://www.bing.com/images/search?sp=-1&pq=code&sc=0-0&sk=&cvid=39A810C4AF314AB6A5A923F4FB6E5282&q=code&qft=+filterui:age-lt10080+filterui:imagesize-large&FORM=IRFLTR
Filtros String que você deseja extrair deste URL IS +filterui:age-lt10080+filterui:imagesize-large
. Você pode aplicá -los em bbid com -filtros, por exemplo
bbid code --filters +filterui:age-lt10080+filterui:imagesize-large