@johnsharon said in How to login to any site using HTTP client in BAS?:
How to login to any site using HTTP client in BAS?
you must repeat the same requests that your site sends after you click the login button.
Hi everyone,
I've successfully created Reddit accounts with the user details, passwords, cookies, and fingerprints stored in a database. From what I've read, these accounts maintain their login status when accessing Reddit. However, I can't seem to find an answer anywhere. My question is: how do I integrate these accounts into the script? I can't find any commands related to this.
Any guidance would be greatly appreciated!
Now I understand, they are set in the executable. :)
'm struggling with this. How do I load the account from the database into the script?
@Prmarketing Модуль база данных его нужно включить и подключить базу , или если встроенная то насколько помню тоже нужно включить работу с встроенным монгодб базой
Thank you for your response, but I believe I'm having issues with the cookies, which is why the accounts are not logging in. Isn't there an updated guide for this? Paying for a premium subscription and being stuck isn't very pleasant
Вы не понятно пишете, вам нужно импортировать куки илиэспортировать , в общем попробуйте модуль поскольку у BAS свои куки по формату
bas-cookiesTools-main.zip
Or rather, I can't quite understand. After logging in, I save my cookies in the database (is that enough, or do I also need to save them in a text file?). Once I've saved them, I open another bot with the restore cookies function, but it doesn't work. The bot gets stuck with this message
ReferenceError: Can't find variable: VAR_cookie during execution of action 228135269
thankyou for module
@Prmarketing У вас ошибка в логике , там написано что переменную которую вы объявили BAS не может найти вы ее скорее всего прописали маленькими буквами а нужно большими
COOKIES , а не cookies
I've rewritten them many times. Now I've written it in uppercase as [[COOKIE]], but in the database the table is in lowercase 'cookie'. Could this be the problem?"


@Prmarketing Ну так вам нужно с базы достать эту строку , вы если занесли записи через модуль то в том же модуле можно и получать строки с встроенной базы , у каждой строки есть свой индентификатор , та надпись в базе данных никак вообще не сопоставлена с переменной , вам нужно создать фильтр , в нем прописать почту которую вы достаете с базы , после распарсить строку если она найдена и получить отпечаток через действие "CSV parce"


this is a big problem :)
@Prmarketing "Получить записи по критерию" - делаете условие с поиском почты , и вытягиваете после через csv нужный фингерпринт
I'll try, but I don't think I'll succeed.
@Prmarketing это точно работает , это уже от вас зависит


this mode ?
Filter by group, what should I insert, the group of COOKIE?
Is there not an already compiled script that someone has shared?