def test_diff_page_radio(self): # url1 = "https://x.hacking8.com/post-348.html" # url2 = "https://x.hacking8.com/post-342-1.html" # html1 = getFilteredPageContent(requests.get(url1).text) # html2 = getFilteredPageContent(requests.get(url2).text) # print(html1, html2) html1 = "helaaaaaaaaaaaaaaaaaaalo this is bookaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" html2 = "hellaaaaaaaaaaaaaaaaaaaaaaaao this is desktopccccccccccccccccccccccc" print(findDynamicContent(html1, html2))
def findDynamicContent(self, firstPage, secondPage): ret = findDynamicContent(firstPage, secondPage) if ret: self.dynamic.extend(ret)