I don't know what type of operation you are doing, but in all my web scraping operations I like to use Selenium Undetected, sometimes what may be happening is that the bot or algorithm detected your actions, do this test