Python movie scraper development: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
{{mininav|[[Scrapers]] {{l2|[[Development]]}} }}
{{mininav|[[Scrapers]] {{l2|[[Development]]}} }}


Revision as of 07:49, 25 May 2022

Home icon grey.png   ▶ Scrapers
▶ Development
▶ Python movie scraper development
Wiki logo.png Wiki revamp:
This page or section of the wiki undergoing a revamp. Content is still being added and organized. Please pardon the dust and anything that might not be working.


Historically, Kodi has been supporting XML scraping addons that allow parsing online information sources about movies, TV shows, music and so on. However, this approach has its limitations. First, XML parsing definitions with regular expressions are difficult to write and maintain. Second, many information sources implemented REST APIs for getting information and regular expressions are not suitable for parsing JSON and data. That is why Python scrapers have been introduced.

Python scrapers are written in Python language and have similar structure to media addons (plugins). They are also called by special plugin:// URLs with query parameters. The main query parameter is action that defines a scraping stage.