Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98894

How to scrape website with content rendering from angular JS with python

$
0
0

enter image description hereI want to scrape content from website: https://www.fireant.vn/App#/company-data/ACB.

As far as i know, the content of tablea i want to scrape dynamically rendering data from Angularjs. They use ng-repeat to pass all value like time, volumn, price into the table.

</tr><!-- end ngRepeat: quote in intradayQuotes | orderBy: '-Date' --><tr ng-repeat="quote in intradayQuotes | orderBy: '-Date'" class="ng-scope">

This code from is as far as i can get as i really don't know what kind of object the table is

driver.get('https://www.fireant.vn/App#/company-data/ACB')
driver.set_window_position(0, 0)
driver.set_window_size(100000, 200000)
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
soup = BeautifulSoup(driver.page_source, 'lxml')

Any instruction on the matter would be much helpful.

Data from table i want to get Data from table i want to get

print driver.page_source


Viewing all articles
Browse latest Browse all 98894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>