2

I need to convert a number of html documents into csv format. Is there a module in python which I can use to do this without having to write custom code based on the html script? This link, for example, does the job pretty well.

Thanks

1 Answer 1

2

Pandas has support for reading HTML tables. See function read_html. You can output the read data with to_csv to a CSV file.

Sign up to request clarification or add additional context in comments.

1 Comment

I had originally planned to convert to csv and process the data in R. But pandas seems like a powerful data tool in its own right. Thanks for this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.