D
D
Denis2021-01-23 20:17:36
Parsing
Denis, 2021-01-23 20:17:36

How to give the user a modified web page?

There is a local network, from where an internal resource is redirected to the Internet (a domain is created), specifically, one page with tabular data.
Recently, a lot of unnecessary information has been added to this page (table layout), you need to cut out unnecessary fragments (lines) and give it to the user in a modified form on the Internet. The page is dynamically updated every three minutes.
I mastered the request and BeautifulSoup methods in Python, tried to cut out fragments, saving them to a file. By adding unmodified css, I achieved the result I needed.
The question is how to optimally rebuild the page and give it to the user in dynamics. On one of the forums, it was advised to use Javascript, I picked it up in the developer console - the desired view is obtained, but it is not clear what to do next. Others advise doing this in PHP.
What would you advise on how to optimally process and issue a page on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2021-01-23
@Rentable

https://gist.github.com/codedokode/ea0503ecb0efbc3...
in fact, all that remains after that is to change what you need with a stripe
and that will take 2 lines of code
, but in fact you get the DOM, all that remains is to replace that part what do you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question