Sending data from Python to WordPress
-
Hello,
I developed an engine (in Python) that aggregates various news articles and run NLP analysis on the text. The results of the analysis must now be displayed on a web-interface.
I have been working on a scallable solution to transfer over data generated by my Python-based engine to WordPress, but I don’t know the best route to take yet.
Here is what I tried so far:
1- I have the most success using the Python XMLRPC library that sends the data over the XMLRPC line. Quite a signficant amount of information for each post is stored in Custom Fields and new Tags are created dynamically in the backend, the API abilities to create and maintain the relational-entity in the database is needed.
2- Using the WP REST API has proven difficult, the documentation is poor, and unlike the solution above, creation of a custom tag requires the Post to be sent, the ID to be retrieved, and the tag name to be added to the POST payload along with that ID into the tags table.
Any other solutions I should consider here? Would appreciate any input.
Thanks
The topic ‘Sending data from Python to WordPress’ is closed to new replies.