string.replace() returns the string with the replaced values. It doesn’t modify the original so do something like this:
link['href'] = link['href'].replace("..", "")
More Related Contents:
- Does anyone know how to get info from a csv?
- Is there a way to sum a list based on another list?
- Print the result obtained from an external window but without opening the window (the selected checkboxes are automatically saved in the database)
- What does += mean in this context?
- Syntax error on print with Python 3 [duplicate]
- Install a module using pip for specific python version
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- Python in Xcode 4+?
- How to clamp an integer to some range?
- Download file through Google Chrome in headless mode
- Can I change the title bar in Tkinter?
- Split a string to even sized chunks
- Naming returned columns in Pandas aggregate function? [duplicate]
- How to plot multi-color line if x-axis is date time index of pandas
- Any gotchas using unicode_literals in Python 2.6?
- AssertionError: View function mapping is overwriting an existing endpoint function: main
- GetWindowRect too small on Windows 7
- pySerial 2.6: specify end-of-line in readline()
- Python basemap module impossible to import
- What is the difference between isinstance(‘aaa’, basestring) and isinstance(‘aaa’, str)?
- What is the point of float(‘inf’) in Python?
- Directly use Intel mkl library on Scipy sparse matrix to calculate A dot A.T with less memory
- gunicorn autoreload on source change
- Python ‘self’ keyword [duplicate]
- Get time zone information of the system in Python?
- Equivalent of `polyfit` for a 2D polynomial in Python
- What does colon at assignment for list[:] = […] do in Python [duplicate]
- How can I understand a .pyc file content
- Installing anaconda with pyenv, unable to configure virtual environment
- How to show minor tick labels on log-scale with Matplotlib