IconProwl : An unofficial API for scraping images off IconFinder.com for web development.
Project description
IconProwl : An unofficial API for scraping images off IconFinder for web development.
Initiate the Class
#To scrape for normal icons , create an instance of the class IconFinder with the name of the image to search , for example :
from IconProwl import IconProwl # Import the class from the package
find_icon=IconProwl.IconFinder("mail")
1 : Scrape web links of images
#To scrape for links of images , call the images() function from the initialized class , for example :
find_icon=IconProwl.IconFinder("mail")
find_icon.images()
2 : Get Links to download and edit images
#To scrape for links of images to download locally , call the get_links() function from the initialized class , for example :
find_icon=IconProwl.IconFinder("mail")
find_icon.get_links()
3: Show/Display a particular Icon
#To display an Icon , call the show_image(image_number:int) function from the initialized class , for example :
find_icon=IconProwl.IconFinder("mail")
find_icon.show_image(2) # Shows the second image from all scraped images
4 : Download an icon
#To download an icon locally , call the save_image(path:str,image_number:int) function from the initialized class , for example :
find_icon=IconProwl.IconFinder("mail")
find_icon.save_image("/Users/myname/Desktop/x.jpeg",6) # Saves the 6th image in the Desktop as x.jpeg
There is also a class for 3D images.
#To scrape for links of images , call the images() function from the initialized class , for example :
from IconProwl import IconProwl # Import the 3D class
find_icon=IconProwl.IconFinder3D("mail")
#All functions are the same as for the IconFinder Class.....
Examples :
Made with Python and BeautifulSoup
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
IconProwl-1.1.1.tar.gz
(2.8 kB
view hashes)