Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get local python api image url

#If you want to send the URLs to external APIs, your images need to be hosted somewhere.
#If your machine is communicating locally, you can simply run

python -m http.server

#in your images folder. Then you will get URLs like

#127.0.0.1:8000/myImg.png

#To access this on another machine in same network, the url would be:

#IPv4ofMachine:8000/myImg.png

#You can get IPv4 of the host machine by running "ipconfig" in your CMD.

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #local #python #api #image #url
ADD COMMENT
Topic
Name
5+4 =