10000 GitHub - Mohamed-Magid/Currency-Spidey: A Node.js scraper for Egyptian banks websites to get currency exchange rates.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mohamed-Magid/Currency-Spidey

Repository files navigation

Currency Spidey

A JavaScript/Node.js web crawlers to fetch currency exchange rates from Egyptian banks websites.

API

I've established an API to fetch data from the app, and here its features for now.

Features

  1. Fetch :
  • You can fetch data using this end point: /api/fetch. this end point will return all the available data to you as a JSON response.
  • You can also request a specific bank to get data from, you can achieve that using this end point: /api/fetch/{bankCode} and I'll list all available bank codes at the end.
  1. Info :
  • That's pretty simple. using this end point /api/info/ It'll return to you the available data about the bank itself as a JSON, now it offers the full name of the bank in both English and Arabic and the URL of the currency exchange page on the bank's website. You can also request a specific bank with /api/info/{bankCode}.

Bank Codes

Here's a list of the available bank codes for now, of course there will be more supported banks later.

Currency Codes

And also here's the available currencies (Note: not all currencies available in every bank).

  • USD (United States Dollar).
  • EUR (Euro).
  • GBP (Pound Sterling).
  • CAD (Canadian Dollar).
  • DKK (Danish Krone).
  • NOK (Norwegian Krone).
  • SEK (Swedish Krona).
  • CHF (Swiss Franc).
  • JPY (Japanese Yen).
  • AUD (Australian Dollar).
  • KWD (Kuwaiti Dinar).
  • SAR (Saudi Riyal).
  • AED (UAE Dirham).
  • BHD (Bahraini Dinar).
  • OMR (Omani Riyal).
  • QAR (Qatari Riyal).
  • JOD (Jordan Dinar).
  • CNY (Chinese Yuan).
  • THB (Thai Baht).

TODOs

  1. Setup an endpoint to target one currency and get a response for it's price in all available banks.
  2. Refactor the code to reduce complexity.
  3. Make smarter error handling.
  4. Store the responses in MongoDB to serve the requests from it and update the database every six hours with a cron-job.
  5. Make a web app based on the API to show exchange rates.
  6. An Android application with @Mr-Geek11.

About

A Node.js scraper for Egyptian banks websites to get currency exchange rates.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0