This a stock scraper. You can get financial information about your favorite stocks from the command line.
- Clone the project repo from GitHub using
git clone https://github.com/Zappat0n/stock_scraper
- Make sure Ruby-lang is installed
- Make sure Bundler is installed
- Install the required gems. Run
bundle install
- Run
ruby bin/main.rb
The application will ask for instructions to proceed. You should introduce an order followed by one or multiple stock tickers separated by commas. The available orders are:
- name: Returns the name of the stock, ex:
name MSFT
- price: Returns the price of the stock, ex:
price GE
- diff: Returns the difference in price from the previous day, ex:
diff AAPL
- quote: Returns the name, price, and difference from yesterday of a given stock, ex:
quote GOOG
- help: Lists the available orders
- finish: Ends the application
If you want to request multiple stocks you can type: quote NVDA, MU, BAC
.
You can preload orders by adding them to the "orders.txt" file, and they will be loaded when the application starts.
- Ruby
- Git
- Gitflows
- Rubocop
- VS Code
- Repl.it
Contributions, issues, and feature requests are welcome! Start by:
- Forking the project
- Cloning the project to your local machine
- cd into the project directory
- Run git checkout -b your-branch-name
- Make your contributions
- Push your branch up to your forked repository
- Open a Pull Request with a detailed description of the development branch of the original project for a review
👤 Angel Barros
Give a ⭐️ if you like this project!