https://github.com/zubs/node_image_finder
A node cli tool to get images links from google search
https://github.com/zubs/node_image_finder
done
Last synced: 8 months ago
JSON representation
A node cli tool to get images links from google search
- Host: GitHub
- URL: https://github.com/zubs/node_image_finder
- Owner: Zubs
- Created: 2020-08-02T13:26:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-26T16:06:37.000Z (over 2 years ago)
- Last Synced: 2024-02-26T17:29:58.394Z (over 2 years ago)
- Topics: done
- Language: JavaScript
- Homepage:
- Size: 432 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeJS CLI image searcher
This is a simple JavaScript CLI tool that fetches images from Unsplash.
## Installation
- Clone the repository
```bash
git clone https://github.com/Zubs/node_cli.git
```
- Install the dependencies
```bash
npm install
```
- Create the .env file and add your secret keys
```bash
cp .env.example .env
```
- Run the application
To find images related to a search term, run the following command:
```bash
node bin/index.js -s
```
This returns a list of images related to the search term. Like this:

Running the command without the search term returns an error:

The returned images by default have the portrait orientation. To change the orientation, use the `-o` flag. The possible options are `landscape`, `portrait`, `squarish` For example:
```bash
node bin/index.js -s -o landscape
```