Login to WordPress from Python

I’ve been trying to learn some Python and have been tinkering with the requests module. Here is how I am able to log into a webpage, such as WordPress. import requests url = “https://techish.net/wp-login.php” redirect_to = “https://techish.net/wp-admin/” with requests.Session() as session: post = session.post(url, data={ ‘log’: ‘admin’, ‘pwd’: ‘password’, ‘redirect_to’: redirect_to }, allow_redirects=True) get = … Read more Login to WordPress from Python

WordPress SQLite to MySQL Migration Complete

Just finished migrating my website from SQLite to MySQL. What a rush. (lol) It was actually not as bad as I thought. A lot of sed, grep and other sorcery involved; especially in transforming of SQLite statements to MySQL. Some quick commands I used: sqlite techish.db .dump > production_2018-08-23.dump.sql I found that it used quotes … Read more WordPress SQLite to MySQL Migration Complete