R
R
r1mple2019-05-04 21:16:34
Python
r1mple, 2019-05-04 21:16:34

How to optimize the parser bot?

I have a Python parser bot in the social. of the VKontakte network, which collects weather data, it is important to note that I receive data from Yandex, and only optimization remains before production. Everything related to accessing VK happens instantly, but when it comes to Yandex, you have to wait 3-6 seconds for an answer, as for a bot, this is quite a long time. So, is there any way to optimize my code and reduce the timeout. By the way, I forgot to mention, I use bs4 for parsing and urllib for requests.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question