A
A
Azat Kiberov2020-02-23 16:58:27
PHP
Azat Kiberov, 2020-02-23 16:58:27

How to automate actions on the browser with conditions like in php?

There is a site, it is updated every 5 seconds, js does it there.
On the php side, it parses a certain site to new news.
If it finds news, it issues a signal and gives the very content that was needed.
That is, it automatically opens a new deposit with an input, where there is a "copy to clipboard" button.
Next, I need to somehow make a js script that captures the appearance of fresh news through some kind of tag or trigger and copies this data to the buffer, that is, to click on the copy button myself.
Then it is necessary that, after copying to the clipboard, he goes to another tab, inserts this data into another site and presses the button.
What are the programs that do these last 2 actions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AUser0, 2020-02-24
@AUser0

Eee, the page in the browser through AJAX receives data from the site, and with certain data makes a "tab" on the page? And you need to transfer the contents of the "tab" to another site?
So repeat the original JS code, changing from showing "tabs" to sending an AJAX request to your site. And even better - just request the necessary data directly from your site, it will be faster. Or is your site not your site at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question