- Install Python 3; I've used similar code on both 3.6 as well as 3.7.
- Install https://github.com/tryolabs/requestium.git
- Make sure Chrome is installed, and insert the chromedriver file in the right directory.
- Change the necessary configuration on the script
- Run the script, preferably on the Python console directly so permission for GDPR can be given manually if relevant (see line 24 of the script)
Note that this will only work for finding users with an account, not comments posted without an account.
The folder structure should look like this:
Top level directory:
- drivers:
- chromedriver_linux64
- chromedriver_mac64
- chromedriver_win32.exe
- find_comments.py
To get the chromedriver files, go to https://chromedriver.storage.googleapis.com/index.html?path=2.46/
and download the zip files, then unpack them in the driver
directory.
Go to the fic you want to look up info for, click "Entire Work", copy the web address
and replace <address to entire work>
with it in the configuration. Then, replace <username>
by the username you want to search for, case-sensitive. For example, searching for all comments
by "centuriesofexistence" on the fic "in love and war and politics" gives the following
configuration:
fic_address = 'https://archiveofourown.org/works/6277216?view_full_work=true'
username = 'centuriesofexistence'