• Categories
  • Search
  • unogs
  • Register
  • Login
uNoGS Forum
  • Categories
  • Search
  • unogs
  • Register
  • Login
ad

Part 2: A simple script to pull information

Netflix API Details
netflix api
8
44
95.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ?
    Guest @admin
    last edited by 7 Mar 2018, 02:25

    @admin I've been trying to do a search call to pathevaluator, even copied exactly what is being sent on netflix's search page, but there must be some kind of sorting going on? For example when I search "shark" I'm getting little rascals at the top. Little rascals is also on the netflix page but down on around row 10.

    Any idea if theres some relevancy value I need? Thanks in advance.

    1 Reply Last reply Reply Quote 0
    • V
      victorhupo
      last edited by 3 Apr 2018, 01:22

      @admin I would like to download the boxart of this title "80101802" but in my language that is brazilian portuguese, I do not understand mto code but I tried it and I did not get it through your tutorial, it would have you help me or else add the function of being able to choose the parents that your site would take the image?

      A 1 Reply Last reply 4 Apr 2018, 12:51 Reply Quote 0
      • A
        admin @victorhupo
        last edited by 4 Apr 2018, 12:51

        @victorhupo what title is that? it doesn't look like it exists..

        1 Reply Last reply Reply Quote 0
        • V
          victorhupo
          last edited by 4 Apr 2018, 15:54

          @admin Sorry, this is it. http://unogs.com/video/?v=80072207

          A 1 Reply Last reply 4 Apr 2018, 18:57 Reply Quote 0
          • A
            admin @victorhupo
            last edited by 4 Apr 2018, 18:57

            @victorhupo If its just for this one title click on 'show all images' , then right click on whatever image you want and save it

            1 Reply Last reply Reply Quote 0
            • V
              victorhupo
              last edited by 4 Apr 2018, 19:35

              @admin but in the site only it shows images in EnglishI would like the images in Brazilian Portuguese.

              A 1 Reply Last reply 4 Apr 2018, 19:48 Reply Quote 0
              • A
                admin @victorhupo
                last edited by admin 4 Apr 2018, 19:53 4 Apr 2018, 19:48

                @victorhupo In that case you would need to use this tutorial and just change your language to whatever you want...

                'Accept-Language':'en-GB,en;q=0.5',
                

                needs to change to:

                'Accept-Language':'pt',
                

                or something equivalent.. have a look at your request headers like mentioned in the example above

                1 Reply Last reply Reply Quote 0
                • L
                  Leuven
                  last edited by 26 May 2018, 11:55

                  Am interested in understanding the geographical differences in Netflix offerings and particularly attempting to determine the hierarchies used to implement various aspects of subscriber based on location. Accordingly beginning to understand what the API can offer seems useful.

                  After using pip to install requests (which I also attempted for json as it's there in the script import statements), I created & did the updates to the script itself.

                  I copied the python script into a (.py) file, updated the cookie sections (containing components for memclid, nfvdid, SecureNetflixId, NetflixId, cL, clSharedContext, didUserInteractWithPage, dsca...).

                  Initially it seemed to give some sort of json error, but after updating the User-Agent details now gives me the following.

                  13:46:Drei $python netflix1.py
                  Traceback (most recent call last):
                  File "netflix1.py", line 29, in <module>
                  videos=rjson['value']['videos']
                  KeyError: 'value'
                  13:46:Drei $head -29 netflix1.py | tail -1
                  videos=rjson['value']['videos']

                  Ideas?
                  I also updated the User Agent value and pathevaluator value (URL) from a POST request.

                  L 1 Reply Last reply 26 May 2018, 13:03 Reply Quote 0
                  • L
                    Leuven @Leuven
                    last edited by 26 May 2018, 13:03

                    As the python response error is apparently with whatever the rjson is, how might I determine if it is being populated? Via inspect element in the browser I can see that videos contains the following attributes..summary, title, titleMaturity, userRating, boxarts, UserRatingRequestId.

                    I know that the browser response is separate from that of the python script response.

                    How to troubleshoot?

                    L 1 Reply Last reply 26 May 2018, 14:09 Reply Quote 0
                    • L
                      Leuven @Leuven
                      last edited by 26 May 2018, 14:09

                      Manually stepping through the steps of the script and using print to reveal variable values and responses shows me much.

                      response=requests.post(url,data=data,headers=headers)
                      print response
                      <Response [200]>

                      So I'm getting an "OK" response.

                      rjson=response.json()
                      print rjson
                      {u'paths': [[u'newarrivals', {u'to': 1, u'from': 0}, {u'to': 5, u'from': 0}, [u'title', u'availability']], [u'newarrivals', {u'to': 1, u'from': 0}, {u'to': 5, u'from': 0}, u'boxarts', u'_342x192', u'jpg']], u'jsonGraph': {u'newarrivals': {u'1': {u'$type': u'ref', u'value': [u'lists',...
                      ...
                      .., {u'boxarts': {u'_342x192': {u'jpg': {u'$type': u'atom'}}}, u'availability': {u'$type': u'atom'}, u'title': {u'$type': u'atom'}}, u'5': {u'boxarts': {u'_342x192': {u'jpg': {u'$type': u'atom'}}}, u'availability': {u'$type': u'atom'}, u'title': {u'$type': u'atom'}}, u'4': {u'boxarts': {u'_342x192': {u'jpg': {u'$type': u'atom'}}}, u'availability': {u'$type': u'atom'}, u'title': {u'$type': u'atom'}}}}}}

                      And here's where it falls down.

                      videos=rjson['value']['videos']
                      Traceback (most recent call last):
                      File "<stdin>", line 1, in <module>
                      KeyError: 'value'

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by 21 Sept 2018, 15:57

                        Hi! I have a new website www.wenetflix.com build with laravel than i want to integrate it unogs.com api

                        Can i do it this please and how ?

                        regards

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by 20 Nov 2018, 09:07

                          How do you search all films available on Netflix?

                          A 1 Reply Last reply 24 Nov 2018, 13:10 Reply Quote 0
                          • A
                            admin @Guest
                            last edited by 24 Nov 2018, 13:10

                            globally? you can't as far as I'm aware... but with unogs.com you can see whats available in 31 countries.

                            1 Reply Last reply Reply Quote 0
                            • D
                              Deckameron
                              last edited by 1 May 2021, 12:58

                              Hello guys,

                              The "&languages=" on Netflix API is no longer working! It only returns the language from your the account.

                              https://www.netflix.com/nq/website/memberapi/v235de6dc/pathEvaluator?webp=false&drmSystem=widevine&original_path=%2Fshakti%2Fv235de6dc%2FpathEvaluator&languages=en-US

                              Do you know how to change the language from the movie name/title?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post