J
J
Jairman2020-03-27 17:09:39
Python
Jairman, 2020-03-27 17:09:39

Is there any way to parse an element from a table?

There are the following elements (this is a table): 5e7e082fd9de1073056578.png
Here is the xpath: /html/body/div[1]/div[7]/div[2]/div[1]/div[4]/div[1]/div[3 ]/div[4]/div[1]/div[3]/div[1]/div/table/tbody/tr[1]/th[2]

Is it possible to parse through BS specifically the "Quantity" element?

If you write like this:

convert = soup.find_all('table', {'class' : 'market_commodity_orders_table'})

That will be a lot of extra data that I don't know how to get rid of.
5e7e0912c9d51665690049.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-03-27
@hottabxp

How to get table via BeatifulSoup?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question