Electronic-Mango / simple-justwatch-python-api

A simple (and unofficial) JustWatch Python API.
https://electronic-mango.github.io/simple-justwatch-python-api/
GNU General Public License v3.0
39 stars 6 forks source link

Get more detail on the material? #11

Open plotti opened 2 months ago

plotti commented 2 months ago

Justwatch offers some quite interesting details on the movie itsself, such as its temporal popularity, but also likes and dislikes and so on...

Bildschirmfoto 2024-09-03 um 11 53 07

It would be highly relevant for me to obtain those. I guess it is a matter of changing the graphql query to include those?

Electronic-Mango commented 1 month ago

I think I could add most of them:

Scores:

scoring {
  imdbScore
  imdbVotes
  tmdbPopularity
  tmdbScore
  tomatoMeter
  certifiedFresh
  jwRating
  __typename
}

Streaming charts:

streamingChartInfo {
  rank
  trend
  trendDifference
  daysInTop3
  daysInTop10
  daysInTop100
  daysInTop1000
  topRank
  updatedAt
  __typename
}

Likes/dislikes from JustWatch:

interactions {
  likelistAdditions
  dislikelistAdditions
  __typename
}

Returned MediaEntry structure would have these new fields, e.g.:

scoring=Scoring(
    imdb_score=8.7,
    imdb_votes=442576,
    tmdb_popularity=1679.87,
    tmdb_score=8,
    tomatometer=85,
    certified_fresh=True,
    jw_rating=0.92623554617,
),
interactions=Interactions(likes=1081, dislikes=14439),
streaming_charts=StreamingCharts(
    rank=51,
    trend="UP",
    trend_difference=15,
    top_rank=1,
    days_in_top_3=12,
    days_in_top_10=148,
    days_in_top_100=1905,
    days_in_top_1000=3202,
    updated="2024-10-06T05:16:37.603Z",
),

Would that work for you?

plotti commented 1 month ago

If that works that World be excellent! Am 6. Okt. 2024, 14:56 +0200 schrieb Electronic Mango @.***>:

I think I could add most of them: Scores: scoring { imdbScore imdbVotes tmdbPopularity tmdbScore tomatoMeter certifiedFresh jwRating typename } Streaming charts: streamingChartInfo { rank trend trendDifference daysInTop3 daysInTop10 daysInTop100 daysInTop1000 topRank updatedAt typename } Likes/dislikes from JustWatch: interactions { likelistAdditions dislikelistAdditions __typename } Returned MediaEntry structure would have these new fields, e.g.: scoring=Scoring( imdb_score=8.7, imdb_votes=442576, tmdb_popularity=1679.87, tmdb_score=8, tomatometer=85, certified_fresh=True, jw_rating=0.92623554617, ), interactions=Interactions(likes=1081, dislikes=14439), streaming_charts=StreamingCharts( rank=51, trend="UP", trend_difference=15, top_rank=1, days_in_top_3=12, days_in_top_10=148, days_in_top_100=1905, days_in_top_1000=3202, updated="2024-10-06T05:16:37.603Z", ), Would that work for you? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Electronic-Mango commented 1 month ago

Check if version 0.16 works for you.

plotti commented 1 month ago

You are the best electrinic mango!