dbrennand / Wallie

Wallie is a CLI which can set your device desktop wallpaper!
GNU General Public License v3.0
6 stars 0 forks source link

add usable image url retriever function and test #13

Closed ghost closed 5 years ago

ghost commented 5 years ago

add a function to get a list of usable images from search (for pexels_scrape). For https://github.com/Dextroz/Wallie/issues/3

You can easily access one of usable the image urls like this


import pexels
scrape_resultset = pexels.pexels_scrape('cat')
usable_urls = pexels.get_image_urls(scrape_resultset)

print(usable_urls[0]) # -> "https://images...."
ghost commented 5 years ago

See new comments on #3

ghost commented 5 years ago

As per comment on #3, Pexels doesn't allow scraping of their website.