Answer the question
In order to leave comments, you need to log in
Which SQL or noSQL to use?
There is a telegram bot on pytelegrambotapi, the bot asks the user for a username and password and saves them in variables. Then, through requests, he logs in to the site and, using bs4, parses some information. When several people use the bot at the same time, the variables are simply overwritten and the result is mess. In this regard, the question is how to solve this problem? And if you need to use a database, then which one?
Answer the question
In order to leave comments, you need to log in
Already tired of answering: any that allows you to record in parallel. Yes, even sqlite will do at first, you won’t immediately run into its limitation, but of course it’s better to start right away with normal ones.
I don't really understand what's wrong here.
If you are supposed to use only one pair of login / password, then no database is needed - a file and access control to this file will suffice (so that there is no race condition when editing).
Otherwise - any database that can find a value by key, the same sqlite, for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question