Python Beautiful Soup Parsing A Utf-8 Coded Table (using Mechanize)
I'm trying to parse the following table, coded in UTF-8 (this is part of it): )
soup = BeautifulSoup(data.text)
print soup.find("table",
id="ctl00_SPWebPartManager1_g_c001c0d9_0cb8_4b0f_b75a_7cc3b6f7d790_ctl00_HistoryData1_gridHistoryData_DataGrid1")
I'm using python requests to get the data from a webpage, its same as as you trying to get the data. The above code works, and the correct ID is given. Try this for a change, don't use .decode('utf-8')
, instead, just use br.response().read()
.
As A Row
I need your help, if the following code below counts every …
How To Make A Transition Effect Up The Input On Change
I need to place this particular effect on a dropdown I need…
Some Questions About Tree Construction [html Spec]
I know that it's not customary to ask a bunch of questi…
Post a Comment for "Python Beautiful Soup Parsing A Utf-8 Coded Table (using Mechanize)"