Skip to content

Description:

  • Make parsing and manipulating URLs easy

Resources:

Get paths and query arguments

from furl import furl
f = furl('http://www.google.com/?one=1&two=2')
f /= 'path'
del f.args['one']
f.args['three'] = '3'
f.url

Modify paths inline

from furl import furl
furl('http://www.google.com/?one=1').add({'two':'2'}).url
furl('http://www.google.com/?one=1&two=2').set({'three':'3'}).url
furl('http://www.google.com/?one=1&two=2').remove(['one']).url

ganymede is made by Eugo