Permalink
Browse files

Using beautifulsoup4 if available

  • Loading branch information...
1 parent b1a0b5a commit 894d1755bd77a26983dd6b1a5bdb0fc0c5b2a391 fabian committed Apr 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 opengraph/opengraph.py
View
@@ -2,7 +2,10 @@
import re
import urllib2
-from BeautifulSoup import BeautifulSoup
+try:
+ from bs4 import BeautifulSoup
+except ImportError:
+ from BeautifulSoup import BeautifulSoup
global import_json
try:

0 comments on commit 894d175

Please sign in to comment.