How can I crawl the target After onclick event ?

19 views
Skip to first unread message

박성렬

unread,
Jun 8, 2016, 7:10:39 AM6/8/16
to beautifulsoup
Hi... I have a problem concerning onclick event (java-script)

The target page can't see anything until click the banner...

following source is a part of target page.

<div id="area_review_user" style="display: none;"> </div>

the problem code is 
 style="display:none

 ----- After click banner ----

style="display:block"

than i can see the review..

This is my code

#-*- coding: utf-8 -*-
import os, sys
from bs4 import BeautifulSoup
from urllib.request import urlopen
soup = BeautifulSoup(urlopen(url).read().decode('utf-8').encode(sys.stdout.encoding, 'replace'), "html.parser")

def get_site_blog():
    finddiv=soup.find_all("div", id = 'area_review_user')
    for i in finddiv:
        print(i)

--------------------------------------------------------------------------------------------------------

It just show <div id="area_review_user" style="display: none;"> </div>
I'd like to see inner code of after click banner!!... ...<.... display:block> ~~~@information@~~~~ </div>

somebody help me !!! plz... thankyou

Reply all
Reply to author
Forward
0 new messages