Answer the question
In order to leave comments, you need to log in
How to make the bot send a random photo from the Internet (preferably by search)?
We need a function that will find a picture by searching Yandex. I did not try it myself, because. I don't think how to do it.
Answer the question
In order to leave comments, you need to log in
I did not try it myself, because. I don't think how to do it.- Maybe you need to think logically. Send a request to yandex image. Parse html response. Put links to images in an array. Pick a random element from an array. What do you not understand about this?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question