Answer the question
In order to leave comments, you need to log in
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
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
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question