I hereby claim:
- I am hexaclock on github.
- I am dvinak (https://keybase.io/dvinak) on keybase.
- I have a public key whose fingerprint is 2ECC 7A94 F72D 6D01 3802 F176 35EA 6877 FBFE A0B6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import os | |
import sys | |
import hashlib | |
from bs4 import BeautifulSoup | |
ROOT = os.getcwd() | |
def get_abs_path(href_path, cur_dir): | |
parent_dir = ROOT if href_path[0] == '/' else cur_dir | |
href = os.path.join(parent_dir, href_path.strip('/')) |