top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

HtmlParser in Python for tables ?

0 votes
661 views

I need to parse the table values from HTML response. Anyone suggest the bay way to do it in python?

posted Jan 25, 2019 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

You can use Pandas library for HTML PARSER in python

  import pandas as pd

  pd.read_html(io, match='.+', flavor=None, header=None, index_col=None, skiprows=None, attrs=None, parse_dates=False, tupleize_cols=None, thousands=', ', encoding=None, decimal='.', converters=None, na_values=None, keep_default_na=True, displayed_only=True)[source]
answer Jan 31, 2019 by Aarati Mahajan
Similar Questions
0 votes
x = range (5)
y = range (5)
for ply in x:
 for com in y:
 if ply==com:
 result="Tie"
 print(ply,com,result)

Why is ply always equal to com?

0 0 Tie
0 1 Tie
0 2 Tie
0 3 Tie
0 4 Tie
1 0 Tie
1 1 Tie
1 2 Tie
1 3 Tie
1 4 Tie
2 0 Tie
2 1 Tie
2 2 Tie
2 3 Tie
2 4 Tie
3 0 Tie
3 1 Tie
3 2 Tie
3 3 Tie
3 4 Tie
4 0 Tie
4 1 Tie
4 2 Tie
4 3 Tie
4 4 Tie
+3 votes

I'm looking for a simple Address Book program written in Python, I've looked at addressbook 1.0.1 from PyPi but it doesn't quite do what I want. I may have to start with this and modify it but maybe there's something better out there.

In particular I want some sort of import/export ability and I'd really like some more configurability.

Any ideas anyone?

...