Giter Site home page Giter Site logo

unsplash-photo-downloader's Introduction

Unsplash Photo Downloader

Recently, my friend, Dhron, showed me a website called Unsplash. This website contains collections of various high definition photos which can be used for whatever you want. I really liked the photos so I created a script which downloads them at random from various pages on the website.

With this script, you can choose to download from the "Popular" collection, the "New" collection or the main page which is the "Featured" collection.

Please check out https://www.unspash.com for more pictures.

Usage

First of all you'll need to decide the following:

  • Which collection do you want to download from? (Featured/Popular/New)
  • How many random photos do you want to download from that page?

On you first run of the script, it will create a directory called "pictures" and it will save all the downloaded pictures in that directory.

To run the script, simply open command prompt and make your way to the directory which contains the downloaded file. Then enter this command:

python unsplash.py

Example run:

=====================================================================================
Do you want to download from the "Featured" page, "Popular" page or "New" page?
Type f for Featured, p for Popular, n for New:
n
=====================================================================================
How many pictures do you want to download?
3
Download Link:  https://unsplash.com/new?photo=CCy2UFLO1Mg/download
Starting Download...
1
...
...Download Finished
The photo has been saved.

Download Link:  https://unsplash.com/new?photo=ibqNFI6nC7g/download
Starting Download...
2
...
...Download Finished
The photo has been saved.

Download Link:  https://unsplash.com/new?photo=ibqNFI6nC7g/download
Starting Download...
3
...
...Download Finished
The photo has been saved.

Some Photos that were downloaded

First photo downloaded from the script

I liked the colors on this

License

MIT

Free Software, Hell Yeah!

Issues

Got this error when downloading from features album. Unable to reproduce:

Traceback (most recent call last): File "unsplash.py", line 58, in img = random.choice(data) File "C:\IntelPython27\lib\random.py", line 275, in choice return seq[int(self.random() * len(seq))] # raises IndexError if seq is empty IndexError: list index out of range

unsplash-photo-downloader's People

Contributors

vaibhav avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.