Comment on: Selenium script to delete comments and submissions on voat
0 13 Feb 2019 05:01 u/applet in v/programmingComment on: Selenium script to delete comments and submissions on voat
He's right though, objectively your solution is worse. Using a bulky webdriver to automate clicks and navigation is crap compared to using raw data and requests.
Login > Scrape history > Get the IDs for the posts you want to delete > Send all the POST requests to delete the comments
Much faster and uses virtually no resources compared to chromedriver. I used to use selenium when I was lazy, but ended up figuring out that doing everything with raw requests was faster and better overall.
VoatRequestVerificationToken it just a hidden field, a very old practice. Just make a request and parse it.
Handle everything the exact same way your browser does when your logged in as a user. You don't need API or a slow ass webdriver to hold your hand for you.