A Query Link Downloader for [www.pexels.com]
Written in: Python
- This project is done only for educational purpose
- If you are interested in creating any web scraper, you can learn through my projects
- I am not responsible for any future controversies/copyright issues
- Making use of my project for any illegal activities does not count as my responsibility
qldl is a acronym for Query Link Downloader.
Here, you get links of images. Later these links are used to download using third party apps.
Here we use Internet Download Manager to download with blazing speed. Since it is meant to download, it has tonnes of features to use.
It is a python based downloader used to download high quality images from [www.unsplash.com] official site.
Since python is one of the programming languages which is very popular and very powerful. We use python for our tool's development.
Why we use "Selenium" but neither "BeautifulSoup" nor "Requests"?
Since https://www.pexels.com is a client of https://www.cloudflare.com, It is better to use a webdriver instead of requests. You will get captchas if you go through requests. We could have used bs4, but we chose Selenium.
- Firstly you need python in your computer.
- Download these modules: requests, Beautifulsoup, urllibs, click, selenium
- Run the given commands on windows command-line. This instruction is particularly for Windows user. If you use any other machine, please see the documentations of the following modules.
pip install requests
pip install beautifulsoup4
pip install urllib3
pip install click
pip install selenium
- We recommend to use firefox browser, so please download firefox for your machine.
- Download geckodriver.exe here.
- Add the path of geckodriver.exe file to the environment variable in Windows OS.
- Download the files as it is.
- Open command prompt from the directory in which your downloaded files are present.
- Use the given command to download :
python pexels-qldl.py --query [search for something]
For example:
python pexels-qldl.py --query nature
- OR you can simply do this:
python pexels-qldl.py
- You will get a text file containing urls of the query. Copy the urls to your clipboard.
- Open IDM on your computer, go to Tasks >> Add batch download from clipboard >> Select all >> Download