M
M
Michael S.2021-10-24 14:46:16
Python
Michael S., 2021-10-24 14:46:16

How to parse a python table?

http://i-klgtu.online/tt/111021/50/21-VT-3.html
how to get all the text in the table using bs4?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-10-24
@BUUSSA

Search all td tags. See the documentation on filtering in BS4 .
The contents of the tag will be in the .string property of the tag object. You can also look at the tag's class attribute, accessible via the ['class'] key. On this site, it seems to indicate the position of a cell in a table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question