https://github.com/elsoul/rakuten_securities_scraper
Rakuten Securities Scraper / 楽天証券スクレイパー
https://github.com/elsoul/rakuten_securities_scraper
Last synced: 7 months ago
JSON representation
Rakuten Securities Scraper / 楽天証券スクレイパー
- Host: GitHub
- URL: https://github.com/elsoul/rakuten_securities_scraper
- Owner: elsoul
- License: mit
- Created: 2020-05-10T03:55:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T20:36:18.000Z (over 4 years ago)
- Last Synced: 2025-03-25T04:54:48.129Z (7 months ago)
- Language: Ruby
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.rakuten-sec.co.jp/)
# RakutenSecuritiesScraper
Rakuten Securities Scraper / 楽天証券スクレイパー
## Introduction
This gem is providing scraper methods for everyone to be able to make stock trading applications without writing scraper codes.
It features:
- Get all trading histories
- Auto Buying (future)
- Auto Selling (future)## Installation
Add this line to your application's Gemfile:
```ruby
gem "rakuten_securities_scraper"
```And then execute:
$ bundle install
Or install it yourself as:
$ gem install rakuten_securities_scraper
## Usage
```ruby
include RakutenSecuritiesScraper
data = RakutenScraper.new($LOGIN_ID, $LOGIN_PW)## Get Today's Trade History
puts data.todays_history## Get All Trade History
puts data.all_history## Get Today's Executed Order
puts data.todays_order## Add favorite list
page_num : Integer 1..10
codes : Array ["4755", "4875",,,]
puts data.favorite page_num, codes```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org/gems/rakuten_securities_scraper).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/elsoul/rakuten_securities_scraper.