This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # POC: Script to download student details from SKU page into CSV | |
| # Author: syukran@umpsa.edu.my | |
| import requests | |
| from lxml import html | |
| import csv | |
| def get_sku_page(): | |
| # Offline version | |
| # with open('sku.html', 'r', encoding='utf-8') as fhtm: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Shopee receipt parser | |
| import numpy as np | |
| import fitz | |
| from glob import glob | |
| from datetime import datetime | |
| import re | |
| def parse_shopee_receipt(pdf_fname): | |
| pdf = fitz.open(pdf_fname) |