O'Reilly logo
  • Alexander Haug thinks this is interesting:

Using some regular expressions to remove escape characters (such as \n) and filtering to remove any Unicode characters, we can clean up the output somewhat:

From

Cover of Web Scraping with Python

Note

how to remove control characters such as \n\r