Linked Questions

1 vote
2 answers
680 views

I am trying to convert the following url http://www.website.com/search/si/1/doctors/Vancouver, BC to http://www.website.com/search/si/1/doctors/Vancouver%2C%20BC I tried urllib.quote('http://www....
user299709's user avatar
  • 5,482
2 votes
1 answer
321 views

I need to encode encode Japanese words to fit the encoding of the word in a link. The problem is when I encode them they're slightly off. I need it to be: %E5%A4%89%E4%BD%93 instead it's: b'\xe5\...
Dominic4774's user avatar
0 votes
1 answer
131 views

How do I convert a string that looks like the following: s1 = u'...
Dave Kalu's user avatar
  • 1,605
1 vote
0 answers
117 views

I'm ussing Flask with Python3. I need to sort my objects ussing the modifier '+' or '-' in the order argumnent of my url. /objects?order=name+ I use the request.args(ImmutableDict) object to get GET ...
lctr30's user avatar
  • 526
0 votes
0 answers
74 views

I want to send a string of text that can contain special chars via a URL. (The string might contain chars that are not suitable to send as a URL.) To do this do i want to scramble the string to ...
beardswitcher's user avatar
0 votes
0 answers
20 views

url = ("websitetogetdatafrom/vandcenter syd/sites/" "{}/histdata0/youngest".format('vestre boulevard f77r370 -ny logger 1')) stuff = "\"select\": [\"{}\&...
Pelle Martin Hesketh's user avatar
569 votes
39 answers
819k views

I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that special characters are processed properly....
Aaron's user avatar
  • 19.8k
195 votes
7 answers
280k views

The URL link below will open a new Google mail window. The problem I have is that Google replaces all the plus (+) signs in the email body with blank space. It looks like it only happens with the + ...
user523234's user avatar
15 votes
1 answer
26k views

I want to submit login to the website Reddit.com, navigate to a particular area of the page, and submit a comment. I don't see what's wrong with this code, but it is not working in that no change is ...
Parseltongue's user avatar
  • 11.7k
5 votes
2 answers
15k views

I'm having a strange problem where I can't seem to set the initial value of one of the fields in my forms in django. My model field is: section = models.CharField(max_length=255, choices=(('...
Ben Kilah's user avatar
  • 3,485
3 votes
1 answer
3k views

I have a url like href="../job/jobarea.asp?C_jobtype=經營管理主管&peoplenumber=151", this is shown in inspect element. But when opened in new tab it is showing as ../job/jobarea.asp?C_jobtype=%B8g%...
Dev Pandu's user avatar
  • 121
1 vote
2 answers
2k views

I was using until now pymongo[srv] to connect my AWS lambda to my MongoDB cluster with: mongodb+srv://username:[email protected]/database Now I am trying to setup the IAM role connection and in ...
Tom3652's user avatar
  • 2,975
1 vote
2 answers
2k views

I am using below codes to download online PDF files. It works fine for most files. # -*- coding: utf8 -*- import urllib2 import shutil import urlparse import os def download(url, fileName=None): ...
Mark K's user avatar
  • 9,506
1 vote
1 answer
1k views

I am retrieving Japanese and Chinese text from a website in the form of JSON using urllib2 and converting them to HTML entities using encode(xmlcharrefreplace). I then use curl to post the same ...
koolkat's user avatar
  • 856
0 votes
1 answer
2k views

I see you can parse usernames and passwords with: from urlparse import urlparse r = urlparse('http://myuser:[email protected]') print r.username # => 'myuser' How can I go the other way? I can't ...
Joe's user avatar
  • 16.9k

15 30 50 per page