Posts: 6
Joined: Sep 2013
Reputation:
0
2013-09-27, 16:48
(This post was last modified: 2013-09-27, 16:54 by elpy.)
Hi there,
I search the answer, but I'm very confused... Is it possible to call a python plugin / script inside a xml scrapper ?
I'm looking for this because I try to call a website inside my scraper which need a kind of authentication (need to compute a key in order to construct the scraper search url).
Thanks
Elpy
Posts: 6
Joined: Sep 2013
Reputation:
0
So is it possible to scrap movies metadata thru a python script ?
Posts: 17,859
Joined: Jul 2011
Reputation:
371
also no (at least not yet)
Posts: 12
Joined: Oct 2012
Reputation:
0
qwesp
Junior Member
Posts: 12
2013-09-29, 10:58
(This post was last modified: 2013-09-29, 11:04 by qwesp.)
I would be happy to see the support for python - scrappers. The current scrapers use many request to identify one movie. This could be done in one request if a simple api is provided. It would be even possible to identify many movies in one request. Imagine the speed up of large library scan and resource free-up on systems like RaspberryPI or similar. Is there some ongoing work on "next-gen" movie identification ?
elpy, there is a workaround for your problem. Create a xbmc service which you can request from scraper, where you will do your python work. Then, create a scraper that will request data from this service. In scarper, there is enough room to do requests and parse/save results to $ buffers for later usage.
Posts: 6
Joined: Sep 2013
Reputation:
0
Thanks qwesp for your idea.
Could you show me an example of an addon call inside a scraper ? I search the answer but found anything.
Posts: 12
Joined: Oct 2012
Reputation:
0
qwesp
Junior Member
Posts: 12
well, for example
<CreateSearchUrl dest="3">
<RegExp input="$$1" output="<url>http://localhost:9190/search/?q=\1</url>" dest="3">
<expression noclean="1"></expression>
</RegExp>
</CreateSearchUrl>
this will return search url "localhost:9190" for scraper to use when searching for data. Your service should listen on port 9190...
Posts: 12
Joined: Oct 2012
Reputation:
0
qwesp
Junior Member
Posts: 12
No. I tried to do one this way, but at the end, it was not usable because of missing API.
Posts: 6
Joined: Sep 2013
Reputation:
0
Thanks... So, no solution for me, isn't it ?