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.
- Host: GitHub
- URL: https://github.com/jackhedaya/stock-screenshot
- Owner: jackHedaya
- Created: 2019-03-12T01:01:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-30T22:33:04.000Z (about 3 years ago)
- Last Synced: 2023-03-03T00:42:39.347Z (over 2 years ago)
- Topics: nodejs-bot, puppeteer, puppeteer-screenshot, screenshot-utility, stocks
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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