Python movie scraper development

From Official Kodi Wiki
Revision as of 07:41, 25 May 2022 by Roman V M (talk | contribs)
Jump to navigation Jump to search
Home icon grey.png   ▶ Scrapers
▶ Development
▶ Python movie scraper development


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.