Questions tagged [urlsplit]
10 questions
42
votes
3 answers
Which should I be using: urlparse or urlsplit?
Which URL parsing function pair should I be using and why?
urlparse and urlunparse, or
urlsplit and urlunsplit?

Matt Joiner
- 112,946
- 110
- 377
- 526
2
votes
1 answer
Invalid IPv6 URL error when using pip on Ubuntu
when I try to install a package out of my anaconda environment I get a "ValueError: Invalid IPv6 URL" error message (full error below). Specifically it looks like the error is in urlsplit.
I am behind a proxy, thus I have tried to explicitely set…

Marco Di Gennaro
- 395
- 1
- 3
- 15
2
votes
5 answers
Splitting a url into a list in python
I am currently working on a project that involves splitting a url. I have used the urlparse module to break up the url, so now I am working with just the path segment.
The problem is that when I try to split() the string based on the delimiter "/"…

chindes
- 61
- 2
- 10
2
votes
0 answers
Java - srcset attribute - split - handle urls with commas and attribute values separated with comma
Splitting scrset attribute value separated with comma is ambiguous. There is no quite smart solutions as URLs may contain commas in the path section without being percent encoded and multiple urls could be separated with comma.
Looking for a smart…

Jane
- 53
- 6
1
vote
2 answers
Split list returned from urlparse in python
I am able to parse url using urlsplit and get parameters using query argument.
url is '/api/v1/test?par1=val1&par2=val2a%3D1%26val2b%3Dfoo%26val2c%3Dbar'
After using urlsplit and query I get
'par1=val1&par2=val2a%3D1%26val2b%3Dfoo%26val2c%3Dbar'
And…

user2661518
- 2,677
- 9
- 42
- 79
1
vote
3 answers
Looking for javascript to split URI
Here is my URI.
/v1/securemessages/members/{mbruid}?folder=Inbox
I want to split this URI using javascript and pass the value of mbruid to a stored procedure.
Here is my script.
function getQueryParam(encUrl,pathverIndex){
var…

temesgen
- 161
- 1
- 2
- 8
0
votes
0 answers
How to Create split URL in 2 different variables
Reset Password link (Cakephp 3.8.4)
$link = urldecode(
Router::url(
array(
"action" => "resetpassword",
base64_encode($_REQUEST['phone_email_forgot'])
),
true
)
);
url…

Anand
- 1
- 1
0
votes
0 answers
Splitting URL for Specific Component
I want to use js to split the following URL:
http://domainexample/path1?src=TMAmke&utm_source=one&utm_medium=Email&utm_campaign=Oct2016
So to create a var that is equal to TMAmke (or any characters in this position of the URL.
What would be the best…

Scott Bishop
- 11
- 2
0
votes
1 answer
Error 'Module_six_moves_urllib_parse' object has no attribute 'urlsplit'
Error Running Sphinx with Six. When I run Make HTML in project docs, I get the error
Running Sphinx v1.4.1 making output directory...
1.4.1
loading pickled environment... not yet created
Exception occurred:
File…

Vin O'Brien
- 46
- 6
0
votes
1 answer
Mysterious error in Python Urlobject called from Django Rest Framework
I am using the Django Rest Framework to build an api, and have an implementation on my development machine. I wanted to quickly deploy it today and it is proving far more error prone than I expected. I have re-installed dependancies, re-installed…

Vic Smith
- 3,477
- 1
- 18
- 29