T
T
Tha_Falcon2020-06-23 18:03:41
Web development
Tha_Falcon, 2020-06-23 18:03:41

How to make a program to interact with the site?

Good day!

I was recently given a task: to make a program that will go to some link from the site on repeat, wait a few seconds, go back and go to the next one. In terms of learning programming, I haven’t gotten out of the console yet, so I don’t even know which way to dig. Please tell me how you can do this, what programs and / or languages ​​\u200b\u200buse.

Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2020-06-23
@Tha_Falcon

If you "enter", in the sense of a browser, then look towards selenium or headless chrome .
If it doesn't matter what, then you can download the page, extract all the links from it with some parser, and then feed the list of links to wget, for example. There you can set a delay between requests.

wget -qO- --keep-session-cookies --save-cookies cookies.txt --post-data '[email protected]&pass=qwerty123&remember=1' https://mysite.com/login
wget -nv --spider -i list.txt 
wget -nv --load-cookies cookies.txt --spider -i list.txt --limit-rate=20k -w 3

Or download Teleport Pro somewhere on the Internet.

D
Denioo, 2020-06-23
@Denioo

I was recently given the task: to make a program that will go to some link from the site on repeat,

In terms of learning programming, I haven’t gotten out of the console yet

Who sets such tasks for you?))
In general, the language in which you write the console logs on that and do it. Pass a list of sites and do what you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question