Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Ruby gem to extract account balance and transactions from banks. You can use it either as command line tool or as a library.
Feel free to contribute and add your bank if it isn't supported.
Interested in any other bank? Open a new Issue and we'll try to help.
Most banks don't offer public APIs and the only way to access your data (balance and transactions) is through their websites... and most bank websites are a f*cking nightmare.
We are developers and we don't want to waste time doing things we are able to automate. Having to perform 20 clicks in an awful website just to check how much money we have is not something we like.
There are two approaches to solve this problem:
BankScrap uses both methods depending on the bank.
Some banks needs a JavaScript runtime in order to work. So if you find an error like "Could not find JavaScript runtime" try to install one. It has been tested with nodejs.
Installation from RubyGems:
# BBVA
gem install bankscrap-bbva
# ING
gem install bankscrap-ing
Or, if you're using Bundler, just add the following to your Gemfile:
# BBVA
gem 'bankscrap-bbva'
# ING
gem 'bankscrap-ing'
Note that you only need to install the gem for your selected bank – the main gem (bankscrap
) will be installed as a dependency.
$ bankscrap balance BBVA --credentials=user:YOUR_BANK_USER password:YOUR_BANK_PASSWORD
ING needs one more argument: your birthday.
$ bankscrap balance ING --credentials=dni:YOUR_DNI password:YOUR_BANK_PASSWORD birthday:01/01/1980
Replace 01/01/1980 with your actual birthday.
$ bankscrap transactions BBVA --credentials=user:YOUR_BANK_USER password:YOUR_BANK_PASSWORD
$ bankscrap transactions ING --credentials=dni:YOUR_DNI password:YOUR_BANK_PASSWORD birthday:01/01/1980
$ bankscrap transactions YourBank --credentials=user:YOUR_BANK_USER password:YOUR_BANK_PASSWORD --from 01-01-2015 --to 01-02-2015
By default it will use your first bank account, if you want to fetch transactions for a different account you can use this syntax:
$ bankscrap transactions YourBank --iban "your_iban" --credentials=user:YOUR_BANK_USER password:YOUR_BANK_PASSWORD
If you don't want to pass your user and password everytime you can define them in your .bash_profile by adding:
export BANKSCRAP_[BANK_NAME]_USER=YOUR_BANK_USER
export BANKSCRAP_[BANK_NAME]_PASSWORD=YOUR_BANK_USER
export BANKSCRAP_[BANK_NAME]_ANY_OTHER_CREDENTIAL=ANY_OTHER_CREDENTIAL
eg: export BANKSCRAP_BBVA_NET_CASH_USER=YOUR_BANK_USER
$ bankscrap transactions YourBank --credentials=user:YOUR_BANK_USER password:YOUR_BANK_PASSWORD --format CSV [--output ./my_transactions.csv]
Currently only CSV is supported. The output parameter is optional, by default transactions.csv
is used.
You can also use this gem from your own app as library. To do so first you must initialize a BankScrap::Bank object
# BBVA
require 'bankscrap-bbva'
bbva = Bankscrap::BBVA::Bank.new(user: YOUR_BBVA_USER, password: YOUR_BBVA_PASSWORD)
# ING
require 'bankscrap-ing'
ing = Bankscrap::ING::Bank.new(dni: YOUR_DNI, password: YOUR_ING_PASSWORD, birthday: "dd/mm/yyyy")
The initialize method will automatically login and fetch your bank accounts
You can now explore your bank accounts accounts:
bank.accounts
And get its balance:
bank.accounts.first.balance
Get last month transactions for a particular account:
account = bank.accounts.first
account.transactions
Get transactions for last year (from now):
account = bank.accounts.first
account.transactions = account.fetch_transactions(start_date: Date.today - 1.year, end_date: Date.today)
account.transactions
In the terminal:
irb -I lib/ -r 'bankscrap'
After that, you can use your bank adapter as usual:
require 'bankscrap-ing'
ing = Bankscrap::ING::Bank.new(dni: YOUR_DNI, password: YOUR_ING_PASSWORD, birthday: "dd/mm/yyyy")
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)You can use a generator to create the basic template for your new bank adapter.
gem install bankscrap
) if you don't have it already.bankscrap generate_adapter BankName
, you will get: create
create bankscrap-my-bank-name.gemspec
create .gitignore
create Gemfile
create LICENSE.txt
create README.md
create Rakefile
create lib/bankscrap-my-bank-name.rb
create lib/bankscrap/my-bank-name/bank.rb
create lib/bankscrap/my-bank-name/version.rb
Great! Now you can start implementing your bank's adapter for Bankscrap.
To get started take a look to:
/Users/username/bankscrap/bankscrap-my-bank-name/lib/bankscrap/my-bank-name/bank.rb
If you need help you can join our Slack chat room. Click the Slack badge on Github:
https://github.com/bankscrap/bankscrap
git init
) and start commiting.Thanks to Javier Cuevas (@javiercr) for his BBVA gem.
FAQs
Unknown package
We found that bankscrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.