0

I'm trying to make a request using scrap shell first, just to test the Xpaths to this kind of url:

site.com/search/?action=search&description=MY SEARCH &e_author=

but the requests only goes to 'action=search' ... the other parameters is been requested ..

how do I build this requests?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
Gh057
  • 137
  • 1
  • 1
  • 4

1 Answers1

1

You have to normalize the URL before making a request, see:

I would go with urllib.quote():

> import urllib

> quoted_url = urllib.quote(url)
> fetch(quoted_url)
Community
  • 1
  • 1
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195