나는 facebook의 html 페이지에서 이름을 찾고 있습니다. 이 같은 파일 html.txt을 경우 :Parse FacebookPage BeautifullSoup를 사용하여
나는 확인 될 것으로 보인다 찾을 수와 이름을 검색,하지만 난 BS로 검색하려고하면 내가 아무것도 찾을 수 없습니다 경우html = open('html.txt','r').read()
soup = BeautifulSoup(html)
..
>>>html.find("Joseph Tan")
98939
>>>html[98700:99000]
'<div class="fwn fcg"><span class="fcg"><span class="fwb"><a class="profileLink" href="https://www.facebook.com/ASD.391" data-ft="{"tn":"l"}" data-hovercard="/ajax/hovercard/user.php?id=123456">Alex Tan</a></span> condivided the photo <a class="profileLink" '
>>> soup.findAll('div',{'class':'fwn fcg'})
[]
>>> soup.findAll('span',{'class':'fwb'})
[]
>>> soup.findAll('a',{'class':'profileLink'})
[]
>>>
누군가 나를 도울 수 있습니까? 덕분에 많은
편집 : 다시 만들어 그것은 다음과 같이 작동하고
샘플 HTML 코드를 공유 할 수 있습니까? –
html 페이지를 다시 만들고 이름을 수정했습니다. 귀하의 도움을 기다리고 메신저 – Gabrio