What exactly does requests.post in Python mean? Need a clear explanation! or Can someone explain the

20 Replies, 1324 Views

Hey! requests.post in python meaning is all about *creating* or *updating* stuff on a server. Like, GET reads, POST writes.

For example, posting a tweet uses POST. Loading your feed uses GET.

Play with this:
```python
response = requests.post('https://api.example.com/items', json={'item': 'book'})
```
Pro tip: Use `json=` instead of `data=` for APIs.

Messages In This Thread



Users browsing this thread: 1 Guest(s)