Title: call python bot from wordpress site
Last modified: March 14, 2021

---

# call python bot from wordpress site

 *  [rockie12_us](https://wordpress.org/support/users/rockie12_us/)
 * (@rockie12_us)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/call-python-bot-from-wordpress-site/)
 * Newbie sort of…
    I have a python crypto currency bot that runs fine on my mac
   via a terminal. I would like to run it from a WP webpage. Make is accessible 
   for others on my WP site to run buys/sells using the bot. Not sure on the architecture.
   Not sure how to pass requests to the bot. Not sure how to have the bot query 
   the WP Database for what buys and sells to put in for a person and how to update
   the database if buys and sells happen.
 * Maybe this is outside the scope of WP.
 * Advise welcome
    Thanks Dean-O

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * (@tobifjellner)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/call-python-bot-from-wordpress-site/#post-14181379)
 * It is technically possible to have your website “turn around” and send requests
   somewhere before responding to an incoming request.
    But: In order for this to
   work, you’d need to have your personal computer up and running as a server 24/
   7, and you’d need to open up an incoming route in your router from the internet
   to your computer. In general, this is NOT A GOOD idea. You don’t want people 
   of the internet trying to find weak spots in your own computer and your home 
   network.
 * Instead, you might look into renting a virtual server for this. Obviously, you’ll
   need to very carefully check all kinds of security around it.
 * And you’re right. This has very little to do with WordPress. 🙂
 *  Thread Starter [rockie12_us](https://wordpress.org/support/users/rockie12_us/)
 * (@rockie12_us)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/call-python-bot-from-wordpress-site/#post-14186901)
 * Hi tobifjellner
    I guess I wasn’t clear. I dont want to run this from my personal
   computer. I will put it in a place like GoDaddy, etc. My question is more the
   architecting this. Can WP make a call to the Python bot I will also have running
   in GoDaddy land? If so, how, what is an architecture that would work for this?
 * Thanks
    Dean-O
 *  Moderator [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * (@tobifjellner)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/call-python-bot-from-wordpress-site/#post-14186921)
 * If you need a plugin in WordPress to call another website, then you can use, 
   for instance:
    – [https://developer.wordpress.org/reference/functions/wp_remote_get/](https://developer.wordpress.org/reference/functions/wp_remote_get/)–
   [https://developer.wordpress.org/reference/functions/wp_remote_post/](https://developer.wordpress.org/reference/functions/wp_remote_post/)
 * And further program in PHP what you need to do from the WordPress site.
    But 
   do you really need WordPress in this? Why not add the functions and formatting
   you need directly on the Python site?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘call python bot from wordpress site’ is closed to new replies.

## Tags

 * [bot](https://wordpress.org/support/topic-tag/bot/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [python](https://wordpress.org/support/topic-tag/python/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [tobifjellner (Tor-Bjorn “Tobi” Fjellner)](https://wordpress.org/support/users/tobifjellner/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/call-python-bot-from-wordpress-site/#post-14186921)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
