Getting data from a site, which cant be found in main HTML file in Python -
i'am using python , making request: page = requests.get('http://www.finam.ru/profile/moex-akcii/aeroflot/news/?start-date=2016-01-01&end-date=2016-12-31',auth=('user', 'pass'))
i expect, able find everything, can see, when view website. dont know certian , not familiar libraries, try check manually:
- i rightclick on random part of page , select "show page code". , actually, can not find needed info there!
- i rightclick on random part of page , select "research element", , can find there in wierd "tree" structure :
so question is, html file recieve, when making request? , how retrive topic names "tree structure". total noob html.
besides source html, there javascript code running on web site, manipulate , change dom (the tree structure describe). when request via python, javascript code not run can see initial html code. doing such stuff called scraping , can tools such selenuim
Comments
Post a Comment