Bulk Bing Image Downloader (BBID) เป็นตัวดาวน์โหลดซึ่ง:
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
หรือถ้าคุณต้องการคุณสามารถดูการสอน YouTube
bbid hello world
คุณอาจต้องการใช้ตัวกรองของ Bing บางอย่างเช่นตัวกรองตามใบอนุญาตขนาดภาพ ฯลฯ BBID ไม่ได้เปิดเผยตัวแปรที่อ่านได้ของมนุษย์ แต่ช่วยให้คุณใช้ตัวกรองทั้งหมดที่เปิดเผยโดยเว็บไซต์ Bing สิ่งที่คุณต้องทำคือใช้ตัวกรองที่คุณต้องการผ่านเว็บไซต์ Bing และคัดลอกจาก URL พวกเขาอยู่หลัง &qft=
และก่อน &
ตัวอย่างเช่นเมื่อคุณค้นหา code
และใช้ตัวกรอง past week
และขนาดภาพ large
URL คุณจะเห็นจะเป็น 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
ตัวกรองสตริงที่คุณต้องการแยกออกจาก URL นี้คือ +filterui:age-lt10080+filterui:imagesize-large
จากนั้นคุณสามารถใช้ใน bbid ด้วย -ตัวกรองเช่น
bbid code --filters +filterui:age-lt10080+filterui:imagesize-large