You mean using a headless browser to interact with a website designed for humans? Why would that be against their terms of service ;)