Netflix Scraper for easy collection of titles, descriptions, cast, ratings, and other public data from Netflix.
Project description
Netflix Scraper
Netflix Scraper extracts public data from Netflix on any scale you need. This quick tutorial will show you how to scrape Netflix with Oxylabs’ Scraper API.
How it works
You can gather Netflix data by sending a request to our API and including the Netflix URLs you want to scrape. Our service will send back the HTML of any Netflix page.
Python code example
This code sample makes a request to our service, which then renders JavaScript via a headless browser and retrieves the HTML of a Netflix page:
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal',
'url': 'https://www.netflix.com/de-en/title/80057281',
'render': 'html'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'), #Your credentials go here
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with results.
pprint(response.json())
Visit our documentation for more information about payload parameters.
Output sample
{
"results": [
{
"content": "<!doctype html>
<html lang="en">
<head>
...
</script></div>
</html>
",
"created_at": "2023-05-18 12:23:06",
"updated_at": "2023-05-18 12:23:25",
"page": 1,
"url": "https://www.netflix.com/de-en/title/80057281",
"job_id": "7064938450625018881",
"status_code": 200
}
]
}
Oxylabs’ Netflix Scraper API makes it much easier to collect public information from Netflix. You can gather details about movies or TV series, like episode names, descriptions, cast, ratings, similar shows, etc. You can also monitor pricing plans or the news about subscription changes. In case you have any questions, you can reach us via live chat or email.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Netflix-scraper-0.1.0.tar.gz
.
File metadata
- Download URL: Netflix-scraper-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2129ac7565864ba43eac62001c5e670f0ef2971c333217be3013fcea301d8bee |
|
MD5 | e3daa3e06504424b6290a73869cfb58e |
|
BLAKE2b-256 | 64c375ce345113f7b55ae83184b974be979930bbcba91038977b514aafcd540e |
File details
Details for the file Netflix_scraper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: Netflix_scraper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad30964d87d3ed9575550922eccc79cbe143d00baaca02bcbdb088a56807e7d6 |
|
MD5 | 0234c0bf40481ac04f352edad9175d3d |
|
BLAKE2b-256 | c913e8ab5aef81588b45e10a8c8fdfe943fa0dbc6b83ec014124a32742eb6ee8 |