简体   繁体   中英

Python - Retrieving data from web server

I am making a program where I need to get information from a web server (I'm using Django) and then I'd send data back to the server.

The thing is I can only find ways to get information from the html page of the url I requested.

How could I use a Python script to get data from the web server? (like making a Django db query but outside Django, using only Python) I want to be able to get the information stored in Django without having to go directly to the website (that is, using a Python script).

Thanks in advance,

I guess you'll want to use a REST framework. The most used are django-rest-framework and tastypie

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM