Pornhub Scraper
3 days trial then $14.99/month - No credit card required now
Pornhub Scraper
3 days trial then $14.99/month - No credit card required now
The Pornhub Scraper extracts video details, model profiles, categories, and search results from Pornhub. It organizes data in formats like JSON, CSV, or Excel for analysis or integration. Perfect for trend analysis, research, or marketing. Input a URL or keyword and download structured data easily!
What does the PornHub Scraper do?
The PornHub Scraper allows you to extract structured data from PornHub, one of the largest adult content platforms. With this scraper, you can efficiently gather detailed information about videos, categories, search results, and channels. The data is delivered in formats such as JSON, CSV, Excel, XML, and HTML, making it easy to analyze and integrate into reports, research, or applications.
Features:
With the PornHub Scraper, you can scrape:
- Categories: Collect all videos listed under a specific category, including video titles, URLs, and additional metadata.
- Channels: Extract data from a model's channel or account page, including video lists, model names, and follower counts.
- Search Results: Retrieve videos and metadata from search queries, using keywords to refine results.
- Videos: Extract detailed metadata for individual videos, such as views, likes, upload date, tags, and uploader details.
How to scrape PornHub with the PornHub Scraper
The PornHub Scraper is designed to be easy to use, even if you have no prior experience with web scraping. Follow these steps to get started:
- Set up an account: Create a free account with your preferred platform for managing scrapers.
- Run the scraper: Start the PornHub Scraper using the pre-built configuration or customize it based on your requirements.
- Input your parameters: Enter URLs for categories, channels, videos, or search queries.
- Start scraping: Click the "Start" button and let the scraper collect data for you.
- Export your data: Download your results in the format of your choice: JSON, XML, CSV, Excel, or HTML.
For a more detailed guide, check out our tutorial or watch the step-by-step video walkthrough.
Input
To scrape data from PornHub, fill out the input form with your desired parameters. The PornHub Scraper recognizes the following input types:
- Category URLs: Scrape all videos from a category within the same page.
Example:https://www.pornhub.com/video?c=35&o=mv&cc=ar
- Channel/Account URLs: Scrape profile data uploaded by a specific model or account.
Example:https://www.pornhub.com/model/marty-and-wendy
- Search queries: Use keywords to retrieve videos and related metadata.
Example:https://www.pornhub.com/video/search?search=mature+anal
- Video URLs: Extract detailed information from a single video.
Example:https://mypornhub.com/view_video.php?viewkey=663975bd4c2ad
Output
Category URLs and Search queries
Category URLs and search queries are used to retrieve video content from a website based on specific categories or keywords. These strategies help organize and filter the scraping process, allowing users to target specific content efficiently.
There are two types of strategies:
-
Basic Search
- The crawler extracts metadata directly from the search results or category pages.
- The output includes information such as video title, duration, view count, rating, and user details without visiting individual video links.
- This approach is faster and lightweight but provides limited details.
- Suitable for scenarios where only surface-level information is required.
-
Deep Search
- The crawler accesses each video link individually, navigating into the video pages to extract comprehensive data.
- This approach provides detailed information such as video ID, thumbnail details, and extended metadata from the video page.
- It is more resource-intensive and time-consuming but delivers richer and more granular data.
- Ideal for use cases requiring in-depth analysis or detailed cataloging of videos.
Use Case Summary
- Basic Search: Quick, efficient for a high-level overview of multiple videos.
- Deep Search: Detailed and exhaustive, ideal for content-rich datasets or precise analyses.
By combining both strategies, users can tailor the crawling process to their specific needs, balancing speed and detail.
The code retrieves video-specific details from a webpage, including metadata, user information, and image details. This output is organized into a structured JSON format, making it suitable for cataloging video data, user interactions, and content analysis.
What you cannot scrape
As a user, you cannot scrape the homepage of PornHub using this scraper because the homepage does not provide structured or directly relevant data for the scraper's intended purpose. Here are some key reasons why:
- Dynamic Content The homepage contains a mix of promotional banners, trending sections, ads, and recommended videos tailored to the user, often loaded dynamically through JavaScript. Scraping such dynamic content is technically complex and may result in inconsistent or incomplete data.
- Lack of Targeted Data The homepage does not focus on a specific category, search result, or channel, which are the main targets of this scraper. Scraping the homepage would produce scattered and irrelevant data, making it less useful for structured analysis.
- Unstable and Frequently Changing Layout Homepages are designed to be visually appealing and change frequently to highlight trending content or seasonal promotions. This instability makes it challenging to maintain a consistent scraping structure.
If you are interested in specific content, such as trending videos or new uploads, it is better to navigate directly to the relevant category or search results page, where the scraper can extract structured and meaningful data efficiently.
Example JSON Output (Basic Search)
1{ 2 "input_url": "https://www.pornhub.com/search?search=example", 3 "url": "https://www.pornhub.com/view_video.php?viewkey=example123", 4 "data_video_id": "123456789", 5 "title": "Example Video Title", 6 "image": { 7 "href": "https://ei.phncdn.com/videos/example/image.jpg", 8 "title": "Example Image Title", 9 "width": 320, 10 "height": 180 11 }, 12 "duration": "10:24", 13 "count": "1.2M", 14 "rating_percent": 95, 15 "uploaded": "2 months ago", 16 "user_info": { 17 "username": "ExampleUser", 18 "user_url": "https://www.pornhub.com/model/exampleuser" 19 } 20}
Explanation of Fields
input_url
: The URL of the page where the video was found.url
: The direct URL of the video.data_video_id
: A unique identifier for the video.title
: The title of the video.image
: Information about the thumbnail image associated with the video:href
: The URL of the thumbnail image.title
: A description or title of the image.width
: The width of the image in pixels.height
: The height of the image in pixels.
duration
: The length of the video inmm:ss
format.count
: The number of views the video has received.rating_percent
: The percentage of positive ratings the video has.uploaded
: The time elapsed since the video was uploaded.user_info
: Details about the user or model who uploaded the video:username
: The name of the user or model.user_url
: The profile URL of the user or model.
This JSON structure captures all relevant video-related details in a concise, structured format suitable for further use in analytics, displays, or reports.
Example JSON Output (Deep Search)
See Video URLs section.
Channel/Account URLs
The code gathers detailed information from a model or profile page and organizes it into a structured JSON format. The output includes personal details, physical attributes, view statistics, and other descriptive metadata about the profile. This data can be used for profiling, analytics, or cataloging purposes.
Example JSON Output
1{ 2 "input_url": "https://www.pornhub.com/model/sample-profile", 3 "username": "SampleModel123", 4 "about_me": "Just a fun-loving individual who enjoys creating amazing content!", 5 "relationship_status": "Single", 6 "interested_in": "Men", 7 "gender": "Female", 8 "birth_place": "Los Angeles, USA", 9 "height": "5'6\"", 10 "weight": "120 lbs", 11 "hair_color": "Blonde", 12 "fake_boobs": false, 13 "tattoos": true, 14 "piercings": false, 15 "video_views": "2.5M", 16 "profile_views": "1.2M", 17 "videos_watched": 150, 18 "turn_ons": "Confidence and a good sense of humor", 19 "turn_offs": "Rudeness and bad hygiene", 20 "city_and_country": "Los Angeles, USA" 21}
Explanation of Fields:
input_url
: The URL of the profile being scraped.username
: The username of the model or profile owner.about_me
: A description provided by the model about themselves.relationship_status
: The relationship status of the model (e.g., Single, Married).interested_in
: The gender(s) the model is interested in.gender
: The model’s gender.birth_place
: The birthplace of the model.height
: The model’s height.weight
: The model’s weight.hair_color
: The model’s hair color.fake_boobs
: Boolean indicating whether the model has fake breasts.tattoos
: Boolean indicating whether the model has tattoos.piercings
: Boolean indicating whether the model has piercings.video_views
: The total number of views on the model's videos.profile_views
: The number of views on the model's profile.videos_watched
: The number of videos the model has watched.turn_ons
: The model’s stated preferences or attractions.turn_offs
: The model’s stated dislikes or turn-offs.city_and_country
: The city and country where the model is based.
This JSON structure ensures all relevant information about the profile is captured in a clean and organized way, making it easy to use for analysis or integration.
Video URLs
The code extracts and organizes detailed metadata from a Pornhub video page into a structured JSON format. The output includes video-specific details (URL, title, views, upload date, etc.), user-related information (username, profile URL, verification status, etc.), and additional metadata like categories, tags, model attributes, spoken languages, and comments. This data can be used for analysis, reporting, or integration into other systems.
Example JSON Output
1{ 2 "input_url": "https://www.pornhub.com/view_video.php?viewkey=ph5d1a7a9c93aa3", 3 "url": "https://www.pornhub.com/view_video.php?viewkey=ph5d1a7a9c93aa3", 4 "data_video_id": "123456789", 5 "title": "Amazing Video Title", 6 "count": "1.2M", 7 "uploaded": "2 days ago", 8 "rating_percent": 92, 9 "votes_up": 15000, 10 "votes_down": 1200, 11 "favorites_counter": 500, 12 "user_info": { 13 "username": "VerifiedUser123", 14 "user_url": "https://www.pornhub.com/model/verifieduser123", 15 "is_verified": true, 16 "videos_count": 75, 17 "suscribers": 12000 18 }, 19 "categories": ["Amateur", "HD Porn", "Verified Couples"], 20 "tags": ["romantic", "couple", "bedroom"], 21 "model_attributes": ["Blonde", "Petite", "Tattoos"], 22 "languages_spoken": ["English", "Spanish"], 23 "comments": [ 24 { 25 "username": "UserA", 26 "comment": "This video is amazing!", 27 "timestamp": "2025-01-10T12:34:56Z", 28 "likes": 45, 29 "dislikes": 3 30 }, 31 { 32 "username": "UserB", 33 "comment": "Love the vibes!", 34 "timestamp": "2025-01-11T08:21:33Z", 35 "likes": 30, 36 "dislikes": 2 37 } 38 ] 39}
Explanation of Fields:
input_url
: The original URL from which the scraping was initiated.url
: The URL of the specific video page.data_video_id
: A unique identifier for the video.title
: The video’s title.count
: Number of views for the video.uploaded
: The relative date when the video was uploaded.rating_percent
: Percentage of positive ratings.votes_up
/votes_down
: Number of upvotes and downvotes.favorites_counter
: Number of users who favorited the video.user_info
: Nested object containing information about the video uploader.categories
: List of video categories.tags
: List of tags associated with the video.model_attributes
: Attributes related to the model(s) in the video.languages_spoken
: Languages spoken in the video.comments
: List of comments, each containing details like username, text, timestamp, and likes/dislikes.
Use Cases
The data collected with this scraper has a wide range of applications, such as:
- Market Analysis: Analyze trends, popular categories, or video performance for market research.
- Content Creation: Get inspiration for creating your own adult content by analyzing trends and tags.
- SEO Optimization: Use metadata, keywords, and tags for search engine optimization in adult content platforms.
- Advertising and Monetization: Identify opportunities to target ads or collaborate with models or creators.
- Data Science Projects: Use the structured data for machine learning, sentiment analysis, or recommendation engines.
Disclaimer
This scraper is a tool designed to assist in automating data collection tasks. Its functionality is neutral and does not inherently violate any laws or regulations. However, the use of this tool depends entirely on the actions and decisions of the user.
The developers of this scraper do not endorse or condone any illegal, unethical, or unauthorized use of the tool. Users are solely responsible for:
- Compliance with Laws: Ensuring their activities adhere to all applicable laws and regulations, including but not limited to data protection laws (e.g., GDPR, CCPA) and intellectual property rights.
- Respecting Website Terms: Reviewing and abiding by the terms of service of any website being scraped, as some may prohibit automated data collection.
- Ethical Use: Avoiding activities that could harm individuals, organizations, or systems.
This tool is provided "as is," and the developers make no warranties about its suitability for any specific purpose. The consequences of using this tool rest entirely with the user.
By using this tool, you agree to:
- Use it responsibly and lawfully.
- Accept full liability for any outcomes arising from its use.
This scraper is merely a means to an end. It is the user’s intentions and actions that determine the legality and ethics of its application. If you are unsure about the legality of your intended use, we strongly recommend seeking advice from a qualified legal professional.
Contributions
Contributions are welcome! Feel free to open an issue if you encounter any bugs or have feature suggestions.
Actor Metrics
1 monthly user
-
0 No stars yet
>99% runs succeeded
Created in Jan 2025
Modified a day ago