u/applet - 2 Archived Voat Posts in v/programming
u/applet
  • home
  • search

u/applet

0 posts · 2 comments · 2 total

Active in: v/programming (2)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: Selenium script to delete comments and submissions on voat

anti-fraud stuff

VoatRequestVerificationToken it just a hidden field, a very old practice. Just make a request and parse it.

You can’t “send all the post requests” because you don’t have the generated tokens just by scraping the html. That is the reason for using selenium, because PuttItOut only gave api access to about 2 accounts.

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.

0 13 Feb 2019 05:01 u/applet in v/programming
Comment 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.

0 13 Feb 2019 01:47 u/applet in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.