NahomAl
ethiobank_receipts
Python

Fast and reliable Python library to extract and verify payment receipts from major Ethiopian banks (CBE, Dashen, Awash, BOA, Zemen, Telebirr).

Last updated Jul 2, 2026
52
Stars
15
Forks
0
Issues
0
Stars/day
Attention Score
22
Language breakdown
Python 100.0%
โ–ธ Files click to expand
README

๐Ÿ“„ ethiobank-receipts

๐Ÿ” Fast and Reliable Receipt Extraction from Ethiopian Banks Optimized for speed and accuracy, ethiobank-receipts enables developers to extract structured data from digital bank receipts across major Ethiopian banks using multithreading and connection pooling.


โš ๏ธ Disclaimer

This is not an official Python packages. I am not affiliated with Ethio Telecom, Telebirr, or any Ethiopian bank (CBE, Dashen, Awash, BOA, Zemen).

This package is built purely for developer utility and research purposes and works by scraping publicly available receipt data.


โœ… Features

  • ๐Ÿฆ Bank Support
- Commercial Bank of Ethiopia (CBE) - Dashen Bank - Awash Bank - Bank of Abyssinia (BOA) - Zemen Bank - Telebirr (Ethio telecom)
  • โšก High Performance
- Multithreaded PDF parsing - Optimized HTTP connection pooling (requests.Session)
  • ๐Ÿง  Smart Automation
- Chrome WebDriver caching (for BOA receipts)
  • ๐Ÿงช Developer Friendly
- Easy CLI interface - Built-in test suite

๐Ÿ“ฆ Installation

pip install ethiobank-receipts

๐Ÿ“– Usage (Python)

Extract from Any Bank by URL

<pre><code class="lang-python">from ethiobankreceipts import extractreceipt from pprint import pprint

urls = { &quot;cbe&quot;: &quot;https://apps.cbe.com.et:100/?id=FT*&quot;, &quot;dashen&quot;: &quot;https://receipt.dashensuperapp.com/receipt/&quot;, &quot;awash&quot;: &quot;https://awashpay.awashbank.com:8225/-*&quot;, &quot;boa&quot;: &quot;https://cs.bankofabyssinia.com/slip/?trx=**&quot;, &quot;zemen&quot;: &quot;https://share.zemenbank.com/rt/**/pdf&quot;, &quot;tele&quot;: &quot;CHQ0FJ403O&quot; }

for bank, url in urls.items(): print(f&quot;Extracting from {bank}...&quot;) try: result = extract_receipt(bank, url) pprint(result) except Exception as e: pprint(f&quot;Failed: {e}&quot;)</code></pre>


Extract CBE with FT Number + Account

<pre><code class="lang-python">from ethiobankreceipts.extractors.cbe import extractcbereceiptinfofromft

data = extractcbereceiptinfofrom_ft(&quot;FT25211G11JQ&quot;, &quot;21827223&quot;) print(data)</code></pre>

โœ” Normalizes FT format (uppercase, trims spaces) โœ” Uses last 8 digits of account โŒ Raises ValueError if account digits < 8


Extract Telebirr by URL or Receipt ID

<pre><code class="lang-python">from ethiobankreceipts import extractreceipt

With full URL

data1 = extract_receipt(&quot;tele&quot;, &quot;https://transactioninfo.ethiotelecom.et/receipt/CHQ0FJ403O&quot;)

Or just the ID

data2 = extract_receipt(&quot;tele&quot;, &quot;CHQ0FJ403O&quot;)</code></pre>

๐Ÿงฐ CLI Usage

URL-based (all banks)

<pre><code class="lang-bash">python -m ethiobank_receipts.cli cbe &quot;https://apps.cbe.com.et:100/?id=FT25211G11JQ21827223&quot; python -m ethiobank_receipts.cli dashen &quot;https://receipt.dashensuperapp.com/receipt/387ETAP2522000WK&quot; python -m ethiobank_receipts.cli tele CHQ0FJ403O</code></pre>

CBE helper

<pre><code class="lang-bash">python -m ethiobank_receipts.cli cbe --ft FT25211G11JQ --account 21827223</code></pre>


๐Ÿ“„ Sample Outputs

CBE Receipt

<pre><code class="lang-json">{ &quot;payer_name&quot;: &quot;John Doe&quot;, &quot;payer_account&quot;: &quot;1000223344&quot;, &quot;receiver_name&quot;: &quot;XYZ Trading PLC&quot;, &quot;receiver_account&quot;: &quot;1000556677&quot;, &quot;amount&quot;: 1250.75, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T10:20:00&quot;, &quot;reference&quot;: &quot;FT25211G11JQ&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>

Telebirr Receipt

<pre><code class="lang-json">{ &quot;payer_phone&quot;: &quot;0912345678&quot;, &quot;receiver_name&quot;: &quot;ABC Market&quot;, &quot;receiver_account&quot;: &quot;1000123456&quot;, &quot;amount&quot;: 500.00, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T09:10:00&quot;, &quot;reference&quot;: &quot;CHQ0FJ403O&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>

Dashen Bank Receipt

<pre><code class="lang-json">{ &quot;payer_name&quot;: &quot;Jane Doe&quot;, &quot;payer_account&quot;: &quot;2000112233&quot;, &quot;receiver_name&quot;: &quot;FastPay PLC&quot;, &quot;receiver_account&quot;: &quot;2000556677&quot;, &quot;amount&quot;: 750.25, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T11:30:00&quot;, &quot;reference&quot;: &quot;387ETAP2522000WK&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>

Awash Bank Receipt

<pre><code class="lang-json">{ &quot;payer_name&quot;: &quot;Michael Abebe&quot;, &quot;payer_account&quot;: &quot;3000334455&quot;, &quot;receiver_name&quot;: &quot;Utility Service&quot;, &quot;receiver_account&quot;: &quot;3000667788&quot;, &quot;amount&quot;: 980.00, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T08:45:00&quot;, &quot;reference&quot;: &quot;AW25220099888&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>

BOA Receipt

<pre><code class="lang-json">{ &quot;payer_name&quot;: &quot;Sarah Mekonnen&quot;, &quot;payer_account&quot;: &quot;4000445566&quot;, &quot;receiver_name&quot;: &quot;E-Store Ethiopia&quot;, &quot;receiver_account&quot;: &quot;4000998877&quot;, &quot;amount&quot;: 1500.00, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T14:15:00&quot;, &quot;reference&quot;: &quot;BOA123456789&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>

Zemen Bank Receipt

<pre><code class="lang-json">{ &quot;payer_name&quot;: &quot;Daniel Kebede&quot;, &quot;payer_account&quot;: &quot;5000556677&quot;, &quot;receiver_name&quot;: &quot;XYZ Imports&quot;, &quot;receiver_account&quot;: &quot;5000112233&quot;, &quot;amount&quot;: 2000.00, &quot;currency&quot;: &quot;ETB&quot;, &quot;date&quot;: &quot;2025-09-09T16:00:00&quot;, &quot;reference&quot;: &quot;ZM987654321&quot;, &quot;status&quot;: &quot;SUCCESS&quot; }</code></pre>


๐ŸŒ Hosting Limitations

Some receipt systems have regional restrictions:

  • Telebirr often blocks or times out requests from foreign IPs.
* Errors include:
403, ERR_FAILED, or DNS resolution issues. * โŒ Affected: VPS or cloud servers outside Ethiopia (e.g., AWS, Hetzner). * โœ… Works Best: Servers hosted in Ethiopia (e.g., Ethio Telecom hosting, TeleCloud VPS).
  • Bank of Abyssinia (BOA) receipts require Chrome WebDriver.
The extractor caches driver sessions for performance.

๐Ÿ›  Notes

  • Always provide the correct reference number or receipt URL.
  • For CBE, you may use FT number + last 8 digits of account instead of full URL.
  • If fewer than 8 digits are provided for CBE accounts, a ValueError` is raised.

๐Ÿ“œ License

MIT License โ€” see LICENSE.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท NahomAl/ethiobank_receipts ยท Updated daily from GitHub