Populating database with data from webscraper

Hi,

I’ve built a webscraper to get metadata like title, tags etc from the web.
I couldn’t find documentation on how to get this data into the plex database. Is there a documentation somewhere on for example which tables I need to populate in the sqlite database in order to import my scraped tags?

Or is there even an API to import metadata from e.g. json?

Thanks!

Unfortunately no.
The only access to the DB now is through the API and there is no external API to perform this task.
It only exists internal to the server software itself

And adding here to @ChuckPa

You could write your scraper as an agent, since that’s the way to get it in there

Might wanna take a peak at other agents avail, like:

1 Like

also, TV Series agent template here: https://github.com/ZeroQI/Hama.bundle/releases/download/v1.0/Empty_Agent_template.bundle.7z

thanks for your answers so far. I used the unoffical python plex api to at least add tags. I would build a agent, but I couldn’t find any documentation for the API…

Would be great if the plex team could work on a small python package with documentation.

I‘ve downloaded all the posters. I‘d really wish there was a way to add all the posters to the files in python. any suggestions?

We need to see code here

Post your Github repo url

There is nothing to see. I’ve built a webscraper. Scraping and interfacing with plex are two different steps at the moment. The crucial part (getting things into plex) isn’t written yet. and I don’t really know where to start. I’ve looked at several agent implementations. They inherit from some agent class and write a search and an update method. If there just was some documentation…

The tags I’ve added utilized the unoffical plex api. Unfortunately the API is very limited in what it can do. Adding posters is not possible.

I don’t necessarily need an agent, it would suffice to build something that only runs once.

you mean like this documentation? Plex Framework Documentation 2.1.1.pdf.7z (750.8 KB)

thanks, is there a link to this documentation?

https://us.v-cdn.net/6025034/uploads/editor/rg/jxvpxxxt63r6.pdf

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.