Skip to content

Instantly share code, notes, and snippets.

View kevinhendricks's full-sized avatar

Kevin Hendricks kevinhendricks

View GitHub Profile
@kevinhendricks
kevinhendricks / python3_fixes_with_bs4_support.patch
Created August 30, 2015 17:47
google/gumbo-parser patch to allow gumboc.py to work with both python 2 and 3 and add BeautifulSoup4 support for both
diff --git a/python/gumbo/bs4_adapter.py b/python/gumbo/bs4_adapter.py
new file mode 100644
index 0000000..5a8d273
--- /dev/null
+++ b/python/gumbo/bs4_adapter.py
@@ -0,0 +1,183 @@
+# -*- coding: utf-8 -*-
+# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
+
+from __future__ import unicode_literals, print_function