For change an HTML section you can try this:
import urllib.request
import bs4 as bs
from bs4 import BeautifulSoup
url_1 = 'YOUR URL'
sauce_1 = urllib.request.urlopen(url_1).read()
soup_1 = bs.BeautifulSoup(sauce_1, 'lxml')
for x in (soup_1.find_all('p')):
x = 'HELLO WORLD'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…