# Netflix Scraper
[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)
Netflix Scraper extracts public data from Netflix on any scale you need.
This quick tutorial will show you how to scrape Netflix with [<u>Oxylabs’
Scraper API</u>](https://oxylabs.io/products/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:
```python
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
[<u>documentation</u>](https://developers.oxylabs.io/scraper-apis/web-scraper-api/all-domains)
for more information about payload parameters.
### Output sample
```json
{
"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 [<u>live
chat</u>](https://oxylabs.io/) or
[<u>email</u>](mailto:support@oxylabs.io).
Raw data
{
"_id": null,
"home_page": "https://oxylabs.io/products/scraper-api/web/netflix",
"name": "Netflix-scraper",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "netflix-scraper,netflix-scraper-api,scrape-netflix,movies-scraper,netflix-api,",
"author": "Oxylabs",
"author_email": "marketing@oxylabs.io",
"download_url": "https://files.pythonhosted.org/packages/64/c3/75ce345113f7b55ae83184b974be979930bbcba91038977b514aafcd540e/Netflix-scraper-0.1.0.tar.gz",
"platform": null,
"description": "# Netflix Scraper\n\n[![Oxylabs promo code](https://user-images.githubusercontent.com/129506779/250792357-8289e25e-9c36-4dc0-a5e2-2706db797bb5.png)](https://oxylabs.go2cloud.org/aff_c?offer_id=7&aff_id=877&url_id=112)\n\nNetflix Scraper extracts public data from Netflix on any scale you need.\nThis quick tutorial will show you how to scrape Netflix with [<u>Oxylabs\u2019\nScraper API</u>](https://oxylabs.io/products/scraper-api).\n\n## How it works\n\nYou can gather Netflix data by sending a request to our API and\nincluding the Netflix URLs you want to scrape. Our service will send\nback the HTML of any Netflix page.\n\n### Python code example\n\nThis code sample makes a request to our service, which then renders\nJavaScript via a headless browser and retrieves the HTML of a Netflix\npage:\n\n```python\nimport requests\nfrom pprint import pprint\n\n\n# Structure payload.\npayload = {\n 'source': 'universal',\n 'url': 'https://www.netflix.com/de-en/title/80057281',\n 'render': 'html'\n}\n\n# Get response.\nresponse = requests.request(\n 'POST',\n 'https://realtime.oxylabs.io/v1/queries',\n auth=('USERNAME', 'PASSWORD'), #Your credentials go here\n json=payload,\n)\n\n# Instead of response with job status and results url, this will return the\n# JSON response with results.\npprint(response.json())\n```\n\nVisit our\n[<u>documentation</u>](https://developers.oxylabs.io/scraper-apis/web-scraper-api/all-domains)\nfor more information about payload parameters.\n\n### Output sample\n\n```json\n{\n \"results\": [\n {\n \"content\": \"<!doctype html>\n<html lang=\"en\">\n<head>\n ...\n </script></div>\n</html>\n\",\n \"created_at\": \"2023-05-18 12:23:06\",\n \"updated_at\": \"2023-05-18 12:23:25\",\n \"page\": 1,\n \"url\": \"https://www.netflix.com/de-en/title/80057281\",\n \"job_id\": \"7064938450625018881\",\n \"status_code\": 200\n }\n ]\n}\n```\n\nOxylabs\u2019 Netflix Scraper API makes it much easier to collect public\ninformation from Netflix. You can gather details about movies or TV\nseries, like episode names, descriptions, cast, ratings, similar shows,\netc. You can also monitor pricing plans or the news about subscription\nchanges. In case you have any questions, you can reach us via [<u>live\nchat</u>](https://oxylabs.io/) or\n[<u>email</u>](mailto:support@oxylabs.io).\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Netflix Scraper for easy collection of titles, descriptions, cast, ratings, and other public data from Netflix.",
"version": "0.1.0",
"project_urls": {
"Bug Reports": "https://github.com/oxylabs/netflix-scraper/issues",
"Documentation": "https://developers.oxylabs.io/scraper-apis/web-scraper-api",
"Homepage": "https://oxylabs.io/products/scraper-api/web/netflix",
"Source": "https://github.com/oxylabs/netflix-scraper"
},
"split_keywords": [
"netflix-scraper",
"netflix-scraper-api",
"scrape-netflix",
"movies-scraper",
"netflix-api",
""
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c913e8ab5aef81588b45e10a8c8fdfe943fa0dbc6b83ec014124a32742eb6ee8",
"md5": "0234c0bf40481ac04f352edad9175d3d",
"sha256": "ad30964d87d3ed9575550922eccc79cbe143d00baaca02bcbdb088a56807e7d6"
},
"downloads": -1,
"filename": "Netflix_scraper-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0234c0bf40481ac04f352edad9175d3d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2395,
"upload_time": "2023-12-18T13:29:49",
"upload_time_iso_8601": "2023-12-18T13:29:49.085672Z",
"url": "https://files.pythonhosted.org/packages/c9/13/e8ab5aef81588b45e10a8c8fdfe943fa0dbc6b83ec014124a32742eb6ee8/Netflix_scraper-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "64c375ce345113f7b55ae83184b974be979930bbcba91038977b514aafcd540e",
"md5": "e3daa3e06504424b6290a73869cfb58e",
"sha256": "2129ac7565864ba43eac62001c5e670f0ef2971c333217be3013fcea301d8bee"
},
"downloads": -1,
"filename": "Netflix-scraper-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "e3daa3e06504424b6290a73869cfb58e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2419,
"upload_time": "2023-12-18T13:29:52",
"upload_time_iso_8601": "2023-12-18T13:29:52.108705Z",
"url": "https://files.pythonhosted.org/packages/64/c3/75ce345113f7b55ae83184b974be979930bbcba91038977b514aafcd540e/Netflix-scraper-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-18 13:29:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "oxylabs",
"github_project": "netflix-scraper",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "netflix-scraper"
}