Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Python rest api post article, update problem

I searched about how to post new article by python. and it worked. Here is sample of my code res = requests.post(urljoin(WP_URL, "/wp-json/wp/v2/posts"), data=json.dumps(...
신동혁's user avatar
0 votes
1 answer
19 views

Trying to create and update wordpress from python library

The Background: I am a software developer that is trying to create a sports analytics website. I used to created wordpress-based sites on the side so I have a WHM where I can host sites. I'd prefer ...
AdamCodes716's user avatar
0 votes
2 answers
529 views

Update media item using wordpress rest api in python

I am trying to update an image using the Wordpress rest api in Python. I get the status code 200 but the image does not update. I have not found any solution online other than replacing http with ...
Shary's user avatar
  • 3
0 votes
0 answers
186 views

Can't retrieve user email address with REST API

I would like to retrieve the email address of an user by id with the REST api from Python. The problem is I don't get the email in the JSON from the two calls I added below. Based on the docs it ...
rihekopo's user avatar
  • 101
0 votes
1 answer
118 views

How do you fetch the authors email or IP from /comments? (REST API)

Does anyone know how to get the email and IP for Wordpress comments using the REST API? The docs. Are the fields just not provided in the response? "author_url" is there. But not "...
baldest_programmer's user avatar
1 vote
1 answer
802 views

Update post / page using API + python

I'm trying to update posts using python and API, the issue that I keep getting code 200 but the post doesn't actually get updated! here is my code: import requests import json import base64 url ='...
Fadi's user avatar
  • 73
0 votes
0 answers
849 views

DELETE request using WP REST API

I am trying to delete a post (by ID number) using WordPress' REST API (through python). However, i keep getting this error. {"code":"rest_no_route","message":"No ...
The Oracle's user avatar
0 votes
1 answer
49 views

Using python to delete specified text from thousands of old blog posts

I'm a web editor that uses WordPress and my site has a bit of an annoying problem. We basically have tens of thousands of articles going back about ten years and we have to delete all of the images we ...
henrikdundarion's user avatar
1 vote
0 answers
511 views

Python with wordpress plugin

I am trying to do some experiments with python and wordpress plugins. I would like to have shortcode [python] with some functionalities. I was trying this metod - Method i tried, but when I do ...
TriX 's user avatar
  • 11
0 votes
0 answers
379 views

Wordpress + python integration

For the sake of simplicity let me give you an idea of what I would like to accomplish. I have a website with paidmembershipspro. I also have a python code on a separate server, which is generating ...
user9102437's user avatar
1 vote
0 answers
111 views

How to upload Woocommerce product images via API? [closed]

I am using Python lib to automate product uploading. I am looking at Woocommerce Rest API documentation and I could not find a way to upload products while creating one. All it assumes that product ...
Volatil3's user avatar
  • 353
0 votes
0 answers
436 views

Cannot edit post meta fields with rest API

I am using python to send POST requests to /wp-json/wp/v2/< post type >/< post id >. This successfully updates standard fields such as title, content etc. However I am unable to make any ...
D10001's user avatar
  • 1
0 votes
1 answer
765 views

Run Python Script on WordPress Website

I am trying to run A python Script as mentioned in the following link.. Running a python script within wordpress But I am still getting the message "permission denied".
shekhar singhal's user avatar
1 vote
2 answers
301 views

Site searches by Python for non-existent assets

I've recently started paying greater attention to my 404 errors in order to clean up what I can and improve my site's SEO and ranking, and have noticed something that I don't understand. In my 404 ...
Trisha's user avatar
  • 418
0 votes
1 answer
2k views

Sending posts from Python to WordPress

We are working on a platform that gets news from various sources and runs some NLP analysis on it. We have the backbone of the backend down, we're now trying to output our results on a feed. Since ...
Pete's user avatar
  • 11
0 votes
0 answers
161 views

How connect local python app to wordpress

I’m new to wordpress. I have a webapp written in matlab and compiled to a python package. I use it in a local server that’s is connected to the interent with a Django project. I want to move the ...
roma salah's user avatar
0 votes
1 answer
203 views

Transferring/Uploading Data from DB to WordPress

I've started to work on a project regarding WordPress Website, I have some experience with WordPress, but it's not on the level I want it to be in the incoming months. I'm more of a Python Developer ...
Stefan's user avatar
  • 103
0 votes
0 answers
1k views

i want to run python script in wordpress

i have a search algorithm that is in python code. i want to integrate that algorithm on our website which is made up of WordPress PHP. Please tell me the way, how can i integrate the python wordpress ...
tushar's user avatar
  • 1
0 votes
1 answer
316 views

Trouble implementing python on WordPress

I followed all the directions in this post and I still cannot get a result to display. I know PHP is doing something, because there is no text displayed whatsoever. The result has a header and no body ...
arabiccode's user avatar
22 votes
3 answers
108k views

Running a python script within wordpress

I have a WordPress install for a personal blog and I'm gradually porting all of the little web bits I have written over the years to pages on the blog. One such page is http://www....
Joe's user avatar
  • 324