2015-11-11, 00:28
Hi,
I'm stuck trying to parse a webpage for a new addon I'm trying to write.
I don't have a lot of knowledge about javascript and HTML but it seems that the web page I'm trying to parse is build through JS functions.
this is the page I'm trying to parse: http://shironet.mako.co.il/artist?type=d...1&prfid=41
when I try to get the contents of this page through my kodi addon (using urllib2 or t0mm0) I get the following response:
but when I check the page source in chrome I can see all the data I am looking for.
what am I doing wrong? how can I solve this issue in my addon?
please help.
thanks.
I'm stuck trying to parse a webpage for a new addon I'm trying to write.
I don't have a lot of knowledge about javascript and HTML but it seems that the web page I'm trying to parse is build through JS functions.
this is the page I'm trying to parse: http://shironet.mako.co.il/artist?type=d...1&prfid=41
when I try to get the contents of this page through my kodi addon (using urllib2 or t0mm0) I get the following response:
Code:
<html><head><meta charset="utf-8"></head><body><script>window.rbzns = {fiftyeightkb: 3600000, days_in_week : 1};</script><script src="//d1a702rd0dylue.cloudfront.net/js/sugarman/v7/flat.js"></script><script>rbzns.challdomain="shironet.mako.co.il"; rbzns.ctrbg="V32/QtF3Pgi6Dqt1ARD+4KIc7mDk8muFK4YT2EpGDH2GuQJ8YW7yps0GJb4Env2G6ZtynOCpu2ncPr94nCR/J9MJ7yfHAXdmAtdIWKk1bw2gsNdKYGkIF9cQ7iMvqvejyO2NxcNNXO6p7i3blEW+R/jYbbWycDq+cxOK+VKlVC7h8xPdu8T6VaoO8eKbnfjxQy3kCY+wqxvgQoml4jDwlh9fD5+UWYURw9b29rIBjHFGtJZT2Qn2t6pTdv8yzwLm";rbzns.rbzreqid="rbz-mako-reblazer05313434373137313430342c0b4411ceb84627"; winsocks(true);</script></body></html>
but when I check the page source in chrome I can see all the data I am looking for.
what am I doing wrong? how can I solve this issue in my addon?
please help.
thanks.