Configure tor by editing the torrc file usually located at /etc/tor/torrc, /lib/etc/tor/torrc, ~/.torrc or /usr/local/etc/tor/torrc - Alternatively you can supply the path yourself with the --default-torrc PATH command line argument.
await page.goto(`https://www.rusprofile.ru/search?query=${encodeURI(query)}&type=${type || 'ul'}`, {
waitUntil: ['domcontentloaded']
});