Difference between revisions of "Python movie scraper development"

From Official Kodi Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{mininav|[[Scrapers]] {{l2|[[Development]]}} }}
{{mininav|[[Scrapers]] {{l2|[[Development]]}} }}
{{Wiki_revamp}}


=Introduction=
=Introduction=

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.

Introduction

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.