Hi all.
I'm coding a Wikipedia bot framework (not using any existing framework) for use on en-wiki. I'm a little confused by the documentation of edit tokens. Which is the correct approach:
1. My bot obtains an edit token using the Main page as a nominal title, saves the edit token and then uses it in every subsequent attempt to edit.
or
2. My bot queries each page to obtain an edit token before attempting to edit.
Richard (TIA)