javascript & original title issues
#1
I have two issues:
1. the page i'm scraping has a javascript code that runs after the page loads and changes a relevant HTML element.
How can I scrape the page after the javascript code has ran ?
2. I want that episode matching will be done using the english <ORIGINALTITLE> and not the hebrew <TITLE>
Reply
#2
1. Not possible, I don't think. There's no javascript engine in XBMC with which to run the javascript.

2. I'm not sure what you mean. Episode matching between files and the episode guide only relies on the season and episode numbers.
Reply
#3
OK, thanks.
But as for my first question, what would you advise in order to scrape this URL for example:
http://www.sratim.co.il/viewseries.php?i...91&e=93470

I want to fetch Season 2 Episode 7 of Louie ("Oh Louie/Tickets") but there is a javascript code that AJAX that episode info into the page after the first load.
So the source code has Episode 13 Season 3 which is what the base URL gets (http://www.sratim.co.il/viewseries.php?id=21422)
Reply
#4
Try manipulating the url from:
Code:
http://www.sratim.co.il/viewseries.php?id=21422#!s=4091&e=93470
to
Code:
http://www.sratim.co.il/viewseries.php?id=21422&s=4091&e=93470

(i.e. replace the #! with &)
Reply
#5
(2013-03-03, 19:07)scudlee Wrote: Try manipulating the url from:
Code:
http://www.sratim.co.il/viewseries.php?id=21422#!s=4091&e=93470
to
Code:
http://www.sratim.co.il/viewseries.php?id=21422&s=4091&e=93470

(i.e. replace the #! with &)

Thanks! So Simple!
Reply

Logout Mark Read Team Forum Stats Members Help
javascript & original title issues0