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

Creating rawheaders for pyNetflix

Netflix API Details
3
8
3.6k
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.
  • A
    admin
    last edited by admin 22 May 2020, 15:46 22 May 2020, 13:53

    In order to successfully scrape Netflix you will need to provide the same headers they use to make requests to their back end API. In our experience this is fairly easy using the inspect capability on Firefox.

    Step 1. Open Firefox and Login to Netflix, double click and choose Inspect Element

    0_1590154484523_Screenshot 2020-05-22 at 14.34.34.png

    Step 2. On the inspect window choose the Network Tab and type "path" in the search field

    0_1590154620368_Screenshot 2020-05-22 at 14.36.52.png

    Step 3. Now go back to your Netflix window and start typing anything in the Netflix search window (next to Magnifying glass at the top). Back in the inspect window you should start seeing a bunch of requests going out to a pathEvalutator endpoint.
    0_1590154789202_Screenshot 2020-05-22 at 14.39.38.png

    Step 4. Click on any of these and you will see a window appear with a bunch of tabs. It should default to the 'Headers' tab. Scroll down here until you see 'Request Headers'. Now click on the 'Raw Headers' to the right of 'Request Headers'.

    0_1590155104294_Screenshot 2020-05-22 at 14.42.20.png

    Step 5. Copy and paste everything in this box from Host to Cookie. Its sometimes tricky to get it into your clipboard. I have found it simplest to highlight everything and then double click (2 finger tap), it should give you the option to copy. Now paste this all in a file called rawheaders in your pyNetflix directory.

    Step 6. Remember the url starting with 'pathEvaluator' you clicked on before? Copy that entire url. This is the endpoint Netflix posts its data to. Paste this in your config.py file

    Step 7. Click on the 'Params' tab (2 to the right of 'Headers), Find a box called 'Form data', in here you should see a parameter called authURL. Copy contents of this for your config.py file.
    0_1590155526546_Screenshot 2020-05-22 at 14.51.57.png

    Thats it, with this information you should be able to get to scraping data.

    Please email us if you have any issues.
    admin@unogs.com

    1 Reply Last reply Reply Quote 0
    • S
      Semínko
      last edited by 23 May 2020, 07:32

      Will check it out! Thanks

      1 Reply Last reply Reply Quote 0
      • S
        Semínko
        last edited by 23 May 2020, 07:37

        BTW, there's no config.py in https://github.com/vbadita/pynetflix. What am I missing?

        1 Reply Last reply Reply Quote 0
        • A
          admin
          last edited by 23 May 2020, 09:29

          thats because ours is in a private repo... and only offered to selected individuals...

          ? 1 Reply Last reply 23 May 2020, 09:41 Reply Quote 0
          • ?
            Guest @admin
            last edited by 23 May 2020, 09:41

            @admin This is an excellent idea to keep the repository private. If made public, Netflix could check what you're doing and easily block everything.

            1 Reply Last reply Reply Quote 0
            • A
              admin
              last edited by 23 May 2020, 09:43

              this is what we were thinking... currently we are only offering this to particular users of our RapidAPI

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by 28 May 2020, 17:56

                How far into the 'gathering of data' do you have to go to tell what resolutions of video are available for a particular title? I have a selenium based 'searcher for netflix' but would like to possibly take it more along the lines of what you guys do, but not sure if you can determine the resolutions, or do you actually have to go as far as trying to watch the video before you get that info?

                A 1 Reply Last reply 29 May 2020, 10:00 Reply Quote 0
                • A
                  admin @Guest
                  last edited by 29 May 2020, 10:00

                  They do have what resolutions are available in each country but it is a bit inconsistent...

                  1 Reply Last reply Reply Quote 0
                  5 out of 8
                  • First post
                    5/8
                    Last post