Skip to content

Instantly share code, notes, and snippets.

View syukranhakim's full-sized avatar

Dr. Syukran Hakim syukranhakim

View GitHub Profile
# 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:
# 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)