There are always a few words missing in the first few paragraphs of the python crawler's question.

when using python to crawl a novel website, there are always a few words missing in the first few paragraphs. Deeply confused.
crawl address: https://www.biqukan.com/1_109.

the code is as follows:

from bs4 import BeautifulSoup
import requests

if __name__ == "__main__":
    target = "https://www.biqukan.com/1_1094/5403177.html"
    req = requests.get(url = target)
    html = req.text
    bf = BeautifulSoup(html)
    texts = bf.find_all("div",class_ = "showtxt")
    -sharpprint(texts)
    print(texts[0].text.replace("\xa0"*8,"\n\n"))

here is the result of my crawl, with one word missing in the red box.
clipboard.png
:

clipboard.png
these words are missing respectively.

Please kindhearted people to help me as a rookie. Thank you.

Sep.18,2021

print(texts[0].text.replace('\xa0'*8,'\n\n'))
Change

to

print(texts[0].text.replace('\xa0'*7,'\n\n'))


that & nbsp is a space. The original format adds a space to the first line of each paragraph, so there is no need to delete

.
from bs4 import BeautifulSoup
import requests

if __name__ == '__main__':
    target = 'https://www.biqukan.com/1_1094/5403177.html'
    req = requests.get(url = target)
    html = req.text
    bf = BeautifulSoup(html)
    texts = bf.find_all('div',class_ = 'showtxt')
    -sharpprint(texts)
    print(texts[0].text)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4d495-44f0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4d495-44f0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?