Switch from \n to /n
parent
7747b11728
commit
1074fe10f1
|
@ -74,11 +74,11 @@
|
|||
" continue\n",
|
||||
" elif e.previous_sibling.name == 'br':\n",
|
||||
" # If this element and the previous are br\n",
|
||||
" # and the next is not append \\n\n",
|
||||
" description = description + ' \\n\\n '\n",
|
||||
" # and the next is not append /n\n",
|
||||
" description = description + ' /n/n'\n",
|
||||
" else:\n",
|
||||
" # If there is just one br append \\n\n",
|
||||
" description = description + ' \\n '\n",
|
||||
" # If there is just one br append /n\n",
|
||||
" description = description + ' /n'\n",
|
||||
" else:\n",
|
||||
" # Append the text inside the element\n",
|
||||
" description = description + e.text.strip()\n",
|
||||
|
@ -126,13 +126,6 @@
|
|||
"source": [
|
||||
"description_background.to_csv('background.csv', encoding='UTF-8', index=False)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
|
Loading…
Reference in New Issue