User:RheingoldRiver/Python

The following is a commented version of my default copy-paste code for writing new Python scripts. You should refer to the mwparserfromhell docs here. I recommend JetBrains Pycharm as a Python IDE. Scroll down if you don't want the comments.

Here is my log_into_wiki file:

You will need to save this, along with password.txt / password2.txt in the same folder as the new script you are writing.

Here's an uncommented version of the copy-paste code which is probably easier to read if you already are somewhat familiar with Python: