Clicking AJAX buttons on Facebook w/ mechanize and Python
-
02-07-2021 - |
题
So I've been trying to create a script that clears all my activity on Facebook by going to the activity log and clicking all the buttons to either delete, or if it can't hide, all posts. Mechanize allows me to log into my account, and navigate to the page. Once there though, clicking the buttons is difficult, since they use javascript. I've heard spidermonkey works well for evaluating javascript, but I was wondering how you could patch it onto mechanize so that it will work with the AJAX Facebook uses.
不隶属于 StackOverflow