[b]"How to get response path from urllib in Python3?"[/b] or [b]"Python3: What's the best way to get response path

20 Replies, 1114 Views

Hey! For python3 get response path from urllib, the `url` attribute is what you need.

But if you’re dealing with complex redirects, you might wanna use `requests` instead. It’s just easier:

```python
import requests
r = requests.get("http://example.com")
print(r.url)
```

Way less hassle.

Messages In This Thread



Users browsing this thread: 1 Guest(s)