ControlPort 9051
HashedControlPassword 16:hash
async function Scrap(query, type) {
torridest.request(`https://www.rusprofile.ru/search?query=${encodeURI(query)}&search_inactive=0&type=${type || 'ul'}`, function (err, res, body) {
console.log(1);
return !err && res.statusCode === 200 ? console.log(body) : console.log(err);
});
}
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']
});