How to play:
- Read Charlie's PhD thesis... or just skim through it looking for fun
- Drink based on the following rules:
- Charlie uses too many references
How to play:
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import bs4 | |
def xpath_soup(element): | |
# type: (typing.Union[bs4.element.Tag, bs4.element.NavigableString]) -> str | |
""" | |
Generate xpath from BeautifulSoup4 element. |