Python Crawling: Importing tables after a specific word

Asked 2 years ago, Updated 2 years ago, 48 views

Page to crawl

By html

text
Table table

Text
Table table

Text
Table table

It looks like this

If there's a text sentence with a specific word that I want, I'd like to get the next table right away.

How should I proceed? (Even if there is no code explanation, I would appreciate it if you could just give me an idea.) Crawling is done with selenium and beautiful soup.

ps. Currently, the company is posting a question, and there is no code. Sorry.

python crawling

2022-09-21 11:45

1 Answers

<p>Wow friends</p>
<table></table>

<p>It's a bald Ajo seed</p>
<table></table>

<p>Yoho</p>
<table></table>

For example, suppose HTML is the same as above and the text you are trying to find is "blank":


2022-09-21 11:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.