can't write scraper to get encoded plot from mtime.com - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: can't write scraper to get encoded plot from mtime.com (/showthread.php?tid=51721) |
can't write scraper to get encoded plot from mtime.com - taxigps - 2009-05-26 mtime.com encode the plot like this: Code: {value:{"isLogin": false, And use this file(http://www.mtime.com/css/scramble.css) to decode: Code: .m_s1{display:none;}.m_s2{display:none;}.m_s4{display:none;}.m_s5{display:none;}.m_s7{display:none;}.m_s8{display:none;}.m_s10{display:none;}.m_s11{display:none;}.m_s13{display:none;}.m_s14{display:none;}.m_s16{display:none;}.m_s17{display:none;}.m_s19{display:none;}.m_s20{display:none;}.m_s22{display:none;}.m_s23{display:none;}.m_s25{display:none;}.m_s26{display:none;}.m_s28{display:none;}.m_s29{display:none;}.m_s31{display:none;}.m_s32{display:none;}.m_s34{display:none;}.m_s35{display:none;}.m_s37{display:none;}.m_s38{display:none;}.m_s40{display:none;}.m_s41{display:none;}.m_s43{display:none;}.m_s44{display:none;}.m_s46{display:none;}.m_s47{display:none;}.m_s49{display:none;}.m_s50{display:none;}.m_s52{display:none;}.m_s53{display:none;}.m_s55{display:none;}.m_s56{display:none;}.m_s58{display:none;}.m_s59{display:none;}.m_s61{display:none;}.m_s62{display:none;} the example decode like this: Code: This is a good story about wolf and sheep.Long long ago,a sheep walk along the river. How to decode the plot in scraper? - spiff - 2009-05-27 pretty much impossible, they do that to make sure you can't :/ - taxigps - 2009-05-27 May be change the flow of scraper to call some program to decode message like this. - spiff - 2009-05-27 you'd need a full blown webbrowser with atleast css support and probably javascript on top of that. i can't see it happening, atleast not just for this. - w00dst0ck - 2009-05-28 Could you supply an example url, please? mtime.com looks very asian for me. Do you want to scrap also asian characters? - taxigps - 2009-05-28 w00dst0ck Wrote:Could you supply an example url, please? mtime.com is a movie site with chinese language. Here is a example url for plot of the movie "Vicky Cristina Barcelona" in chinese language: Code: http://www.mtime.com/database/ShowPlotService.m?Ajax_CallBack=true&Ajax_CallBackType=Mtime.Community.Controls.CommunityPages.ShowPlotService&Ajax_CallBackMethod=LoadData&Ajax_RequestUrl=http%3A%2F%2Fwww.mtime.com%2Fmovie%2F53935%2Fplots.html&Ajax_CallBackArgument0=1&Ajax_CallBackArgument1=53935 I'm also submit a scraper of mtime.com for xbmc. You can see it in the xbmc svn. - w00dst0ck - 2009-05-28 As Spiff noticed before, it seems impossible. Sometimes those sites supply an api to work with the content. Maybe you have to contact the webmaster of mtimes.com to find a solution. - taxigps - 2009-05-29 I know the flow of scraper now can't do this. But meedio's .mpp can do this. |