An open API service indexing awesome lists of open source software.

https://github.com/jackhedaya/stock-screenshot

A tool that takes scheduled screenshots of Yahoo Finance stock graphs.
https://github.com/jackhedaya/stock-screenshot

nodejs-bot puppeteer puppeteer-screenshot screenshot-utility stocks

Last synced: 4 months ago
JSON representation

A tool that takes scheduled screenshots of Yahoo Finance stock graphs.

Awesome Lists containing this project

README

          

# stock-screenshot

A tool to help with scheduled screenshots of Yahoo Finance stock graphs. Not really meant to be used externally, but if its useful to you then go for it!

## Contributing
+ `$ git clone https://github.com/jackHedaya/stock-screenshot`
+ `$ cd stock-screenshot && yarn`

## Usage
First, you're going to need to clone stock-screenshot.
1. `$ git clone https://github.com/jackHedaya/stock-screenshot`

stock-screenshot should be ran with pm2 so the scheduler can be ran in the background as a daemon.

2. yarn: `$ yarn global add pm2`

npm: `$ npm i -g pm2`

You can set stocks and scheduled cron time in `config.js`.

3. **config.js**

```js
module.exports = {
stocks: ["AMZN", "AAPL", "NFLX"], // Set tickers here
cronTime: "0 30 18 * * *" // Set cronTime here`
}
```

You can now have pm2 run the app.

4. `$ pm2 start index.js --name stock-screenshot` or `$ yarn deploy`

## Dependencies
+ Puppeteer
+ Node Schedule