split
does not modify the string. It returns a list of the split pieces. If you want to use that list, you need to assign it to something with, e.g., r = r.split(' ')
.
More Related Contents:
- How to download a file over HTTP?
- urllib2.HTTPError: HTTP Error 403: Forbidden
- How do you send a HEAD HTTP request in Python 2?
- How to add both file and JSON body in a FastAPI POST request?
- How to avoid HTTP error 429 (Too Many Requests) python
- Is there an easy way to request a URL in python and NOT follow redirects?
- Python: HTTP Post a large file with streaming
- Python urllib2 with keep alive
- Python ‘requests’ library – define specific DNS?
- How to encode UTF8 filename for HTTP headers? (Python, Django)
- Python urllib2 Progress Hook
- In Python, how do I decode GZIP encoding?
- Why am I getting this error in python ? (httplib)
- How do I send a POST request as a JSON?
- Using Flask, how do I modify the Cache-Control header for ALL output?
- python how to decode http response
- How to implement retry mechanism into python requests library?
- What should I do if socket.setdefaulttimeout() is not working?
- How to scrape a website that requires login first with Python
- Save a large file using the Python requests library [duplicate]
- Python requests speed up using keep-alive
- Python: How do I get key/value pairs from the BaseHTTPRequestHandler HTTP POST handler?
- Download file using partial download (HTTP)
- Why am I getting httplib.BadStatusLine in python?
- Python – make a POST request using Python 3 urllib
- Does Django have a way to open a HTTP long poll connection?
- How to catch 404 error in urllib.urlretrieve
- Is there any way to do HTTP PUT request in Python?
- How do I set HTTP headers using Python’s urllib?
- How to send JSON or Form data to FastAPI backend through Axios JavaScript HTTP request?