rdx / imdb-user-api
Fake API client for IMDB user data
dev-master
2024-10-28 21:40 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.4
- rdx/js-dom: ^1.3
This package is auto-updated.
Last update: 2024-10-28 21:40:19 UTC
README
Fake API client for IMDB USER data.
Scrapes IMDB for your USER data, like ratings, watchlist, etc. Since IMDB doesn't have a USER API, and doesn't like robots, you can't log in with this package, so you need to log in with a real browser, copy 2 cookie values, and use that for auth:
$client = new Client(new AuthSession("Cookie 'at-main'", "Cookie 'ubid-main'"));
And then you do a 'login' (but not really) and session check:
$loggedIn = $client->logIn(); // bool
And then you can fetch your USER data:
$client->getLists(); // ListMeta[] $client->rateTitle('tt1234567', 8); // bool $client->addTitleToWatchlist('tt1234567'); // bool $client->removeTitleFromWatchlist('tt1234567'); // bool $client->titleInWatchlist('tt1234567'); // bool