jquery - How to get the result of a javascript function from a python code using Beautiful Soup? -


i want scrap data website using beautiful soup in python. site changes values of drop down menu based on selection user. there no api call in changing values of drop down menu. on taking closer look, observed there 1 javascript function called internally values of drop down menu. problem values of drop down menu not there in page source. got calling js function sice there no api call, can't request values. can tell me how can call javascript function python code. i'm using beautiful soup web scrapping.

thanks

you might interested in pyv8 module; lets embed javascript interpreter in python code, not include browser dom. give short example in why beautifulsoup not finding specific table class?

for javascript makes more extensive use of browser features, may prefer ghost.py, headless webkit-based browser python api.

failing that, if gave page url, take @ javascript , see if there's quick way duplicate call in python.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -