total_comment = soupfindspan class rating_numstring
This line of code uses the BeautifulSoup library to find a span element with the class "rating_num" in the HTML code. It then retrieves the string value of that element, which is the total number of comments or ratings for a particular item.
原文地址: https://www.cveoy.top/t/topic/g7F6 著作权归作者所有。请勿转载和采集!