Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3 via six, some rewriting #73

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix lxml warning for BeautifulSoup
pmlandwehr committed Aug 24, 2016
commit 5d4b9fc7d47a41491801813b70eff9c6ea4ef12d
2 changes: 1 addition & 1 deletion examples/sp500/code/parse_sp500.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

# read in html data
with open(sys.argv[1]) as stream:
soup = BeautifulSoup(stream.read())
soup = BeautifulSoup(stream.read(), 'lxml')

# extract the table into a csv
writer = csv.writer(sys.stdout)