Sending posts from Python to WordPress

Use the REST API at /wp-json, there are endpoints for retrieving posts that you can POST to.

You will need a plugin installed to provide authentication, I recommend OAuth2.

Then, you can use an OAuth2 and a REST API library in python. You do not need to use a WordPress specific library.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)