Pywikibot with termux
From Muhammad Yahya
This is the command list to install pywikibot on mobile using Termux. First of all, install Termux from f-droid. I don't recommend downloading it from the playstore. Download core_stable.zip from this link. Move this file to another folder. Copy the file path/folder location. Use the following commands one by one.
apt update
apt upgrade
pkg install python
pip install pywikibot
pip install mwparserfromhell
pip install wikitextparser
pip install -U setuptools
cp <file path of core_stable.zip>
unzip <file_name>
Done!
To start with pywikibot-
cd core_stable && ls
python generate_user_files.py
python pwb.py login
Wanna code with python?
pkg install nano
nano <filename>.py
- write your code. To save the file use
ctrl
+s
. To exit usectrl
+x
- To run code use the command
python <filename>.py